ERC-1155
Overview
Max Total Supply
357
Holders
209
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 Source Code Verified (Exact Match)
Contract Name:
DopNFT
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.25; 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"; /// @title DopNFT contract /// @notice Implements the minting of Dop NFTs /// @dev The dop nft contract allows you to mint dop nft contract DopNFT is ERC1155, Ownable { using Strings for uint256; /// @notice Thrown when caller is other than dop claims contract error OnlyDopClaims(); /// @notice Thrown when updating an address with zero address error ZeroAddress(); /// @notice Thrown when updating with the same value as previously stored error IdenticalValue(); /// @notice The address of dop claims contract address public dopClaims; /// @notice Ensures that only claims contract can call the function modifier OnlyClaims() { if (dopClaims != msg.sender) { revert OnlyDopClaims(); } _; } /// @dev Emitted when dop claims contract is updated event DopClaimsUpdated(address indexed prevAddress, address indexed newAddress); /// Constructor /// @param baseUri The base uri of the tokens /// @param owner The address of owner wallet constructor(string memory baseUri, address owner) ERC1155(baseUri) Ownable(owner) {} /// @notice Mint nfts to the user /// @param to The address to which nfts will be minted, it will be non-zero address /// @param ids The token ids that will be minted to `to` /// @param quantity The amount of nfts that will be minted to `to` function mint(address to, uint256[] calldata ids, uint256[] calldata quantity) external OnlyClaims { _mintBatch(to, ids, quantity, ""); } /// @notice The function updates uri of the tokens /// @param newUri The new bas uri of the tokens function setBaseUri(string memory newUri) external onlyOwner { _setURI(newUri); } /// @notice The function overrides existing function /// @param tokenId The nft token id for which base uri will be calculated function uri(uint256 tokenId) public view override returns (string memory) { string memory baseUri = super.uri(tokenId); return bytes(baseUri).length > 0 ? string.concat(baseUri, tokenId.toString()) : ""; } /// @notice Changes dop claims contract to a new address /// @param newDopClaims The address of the new claims contract function setDopClaims(address newDopClaims) external onlyOwner { if (newDopClaims == address(0)) { revert ZeroAddress(); } address oldWallet = dopClaims; if (oldWallet == newDopClaims) { revert IdenticalValue(); } emit DopClaimsUpdated({ prevAddress: oldWallet, newAddress: newDopClaims }); dopClaims = newDopClaims; } }
// 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) (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) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.20; import {IERC1155} from "./IERC1155.sol"; import {IERC1155Receiver} from "./IERC1155Receiver.sol"; import {IERC1155MetadataURI} from "./extensions/IERC1155MetadataURI.sol"; import {Context} from "../../utils/Context.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {Arrays} from "../../utils/Arrays.sol"; import {IERC1155Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 */ abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors { using Arrays for uint256[]; using Arrays for address[]; mapping(uint256 id => mapping(address account => uint256)) private _balances; mapping(address account => mapping(address operator => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256 /* id */) public view virtual returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. */ function balanceOf(address account, uint256 id) public view virtual returns (uint256) { return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] memory accounts, uint256[] memory ids ) public view virtual returns (uint256[] memory) { if (accounts.length != ids.length) { revert ERC1155InvalidArrayLength(ids.length, accounts.length); } uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts.unsafeMemoryAccess(i), ids.unsafeMemoryAccess(i)); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeTransferFrom(from, to, id, value, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeBatchTransferFrom(from, to, ids, values, data); } /** * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from` * (or `to`) is the zero address. * * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise. * * Requirements: * * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received} * or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. * - `ids` and `values` must have the same length. * * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead. */ function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual { if (ids.length != values.length) { revert ERC1155InvalidArrayLength(ids.length, values.length); } address operator = _msgSender(); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids.unsafeMemoryAccess(i); uint256 value = values.unsafeMemoryAccess(i); if (from != address(0)) { uint256 fromBalance = _balances[id][from]; if (fromBalance < value) { revert ERC1155InsufficientBalance(from, fromBalance, value, id); } unchecked { // Overflow not possible: value <= fromBalance _balances[id][from] = fromBalance - value; } } if (to != address(0)) { _balances[id][to] += value; } } if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); emit TransferSingle(operator, from, to, id, value); } else { emit TransferBatch(operator, from, to, ids, values); } } /** * @dev Version of {_update} that performs the token acceptance check by calling * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it * contains code (eg. is a smart contract at the moment of execution). * * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any * update to the contract state after this function would break the check-effect-interaction pattern. Consider * overriding {_update} instead. */ function _updateWithAcceptanceCheck( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal virtual { _update(from, to, ids, values); if (to != address(0)) { address operator = _msgSender(); if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data); } else { _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data); } } } /** * @dev Transfers a `value` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `value` amount. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, to, ids, values, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. * - `ids` and `values` must have the same length. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, to, ids, values, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the values in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates a `value` amount of tokens of type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address to, uint256 id, uint256 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `values` must have the same length. * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev Destroys a `value` amount of tokens of type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. */ function _burn(address from, uint256 id, uint256 value) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. * - `ids` and `values` must have the same length. */ function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the zero address. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC1155InvalidOperator(address(0)); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address * if it contains code at the moment of execution. */ function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 value, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address * if it contains code at the moment of execution. */ function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Creates an array in memory with only one value for each of the elements provided. */ function _asSingletonArrays( uint256 element1, uint256 element2 ) private pure returns (uint256[] memory array1, uint256[] memory array2) { /// @solidity memory-safe-assembly assembly { // Load the free memory pointer array1 := mload(0x40) // Set array length to 1 mstore(array1, 1) // Store the single element at the next word after the length (where content starts) mstore(add(array1, 0x20), element1) // Repeat for next array locating it right after the first array array2 := add(array1, 0x40) mstore(array2, 1) mstore(add(array2, 0x20), element2) // Update the free memory pointer by pointing after the second array mstore(0x40, add(array2, 0x40)) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (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/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) (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) (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/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) (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/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/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) (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/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 } } }
// 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)); } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 1000000, "details": { "yulDetails": { "optimizerSteps": "u" } } }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"address","name":"owner","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":[],"name":"IdenticalValue","type":"error"},{"inputs":[],"name":"OnlyDopClaims","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ZeroAddress","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":"prevAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"DopClaimsUpdated","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":"dopClaims","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","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":"newUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDopClaims","type":"address"}],"name":"setDopClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523461002b5761001a61001461016c565b9061018e565b6040516122ca6104bc82396122ca90f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b90601f01601f191681019081106001600160401b0382111761006757604052565b610030565b9061008061007960405190565b9283610046565b565b6001600160401b03811161006757602090601f01601f19160190565b60005b8381106100b15750506000910152565b81810151838201526020016100a1565b909291926100d66100d182610082565b61006c565b938185528183011161002b5761008091602085019061009e565b9080601f8301121561002b57815161010a926020016100c1565b90565b6001600160a01b031690565b6001600160a01b0381160361002b57565b9050519061008082610119565b919060408382031261002b578251906001600160401b03821161002b5760206101658261010a9487016100f0565b940161012a565b61018a6127868038038061017f8161006c565b928339810190610137565b9091565b610080916101ad565b61010d61010a61010a9290565b61010a90610197565b906101b790610219565b6101c160006101a4565b6001600160a01b0381166001600160a01b038316146101e457506100809061028b565b610215906101f160405190565b631e4fbdf760e01b8152918291600483016001600160a01b03909116815260200190565b0390fd5b610080906104b0565b61010a9061010d565b61010a9054610222565b906001600160a01b03905b9181191691161790565b61010a9061010d906001600160a01b031682565b61010a9061024a565b61010a9061025e565b9061028061010a61028792610267565b8254610235565b9055565b6102b16102ab61029b600361022b565b6102a6846003610270565b610267565b91610267565b907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06102dc60405190565b600090a3565b634e487b7160e01b600052602260045260246000fd5b9060016002830492168015610318575b602083101461031357565b6102e2565b91607f1691610308565b9160001960089290920291821b911b610240565b61010a61010a61010a9290565b919061035461010a61028793610336565b908354610322565b61008091600091610343565b818110610373575050565b80610381600060019361035c565b01610368565b9190601f811161039657505050565b6103a861008093600052602060002090565b906020601f8401819004830193106103ca575b6020601f909101040190610368565b90915081906103bb565b906103dd815190565b906001600160401b03821161006757610400826103fa85546102f8565b85610387565b602090601f831160011461043b57610287929160009183610430575b5050600019600883021c1916906002021790565b01519050388061041c565b601f1983169161045085600052602060002090565b9260005b81811061048e57509160029391856001969410610475575b50505002019055565b01516000196008601f8516021c1916905538808061046c565b91936020600181928787015181550195019201610454565b90610080916103d4565b6100809060026104a656fe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461010157806301ffc9a7146100fc5780630e89341c146100f75780632a2fb55b146100f25780632eb2c2d6146100ed5780634e1273f4146100e85780635275b4a8146100e3578063715018a6146100de5780638da5cb5b146100d95780639727756a146100d4578063a0bcfc7f146100cf578063a22cb465146100ca578063e985e9c5146100c5578063f242432a146100c05763f2fde38b036101415761092c565b610910565b6108b3565b610877565b610827565b6107e5565b610740565b610728565b6106e6565b61067b565b610547565b61030b565b6102d0565b610204565b61018b565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b73ffffffffffffffffffffffffffffffffffffffff81165b0361014157565b600080fd5b9050359061015382610122565b565b8061013a565b9050359061015382610155565b91906040838203126101415761011f9060206101848286610146565b940161015b565b34610141576101b76101a76101a1366004610168565b906109b9565b6040519182918290815260200190565b0390f35b7fffffffff00000000000000000000000000000000000000000000000000000000811661013a565b90503590610153826101bb565b906020828203126101415761011f916101e3565b34610141576101b761021f61021a3660046101f0565b6109de565b6040515b91829182901515815260200190565b906020828203126101415761011f9161015b565b60005b8381106102595750506000910152565b8181015183820152602001610249565b61028a6102936020936102bb9361027e815190565b80835293849260200190565b95869101610246565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b602080825261011f92910190610269565b34610141576101b76102eb6102e6366004610232565b610b10565b604051918291826102bf565b906020828203126101415761011f91610146565b346101415761032361031e3660046102f7565b610cd1565b604051005b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff82111761039757604052565b610328565b906101536103a960405190565b9283610357565b67ffffffffffffffff81116103975760208091020190565b909291926103dd6103d8826103b0565b61039c565b938185526020808601920283019281841161014157915b8383106104015750505050565b6020809161040f848661015b565b8152019201916103f4565b9080601f830112156101415781602061011f933591016103c8565b67ffffffffffffffff811161039757602090601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b90826000939282370152565b9092919261048c6103d882610435565b938185528183011161014157610153916020850190610470565b9080601f830112156101415781602061011f9335910161047c565b91909160a081840312610141576104d88382610146565b926104e68160208401610146565b92604083013567ffffffffffffffff8111610141578261050791850161041a565b92606081013567ffffffffffffffff8111610141578361052891830161041a565b92608082013567ffffffffffffffff81116101415761011f92016104a6565b346101415761032361055a3660046104c1565b93929092610d01565b909291926105736103d8826103b0565b938185526020808601920283019281841161014157915b8383106105975750505050565b602080916105a58486610146565b81520192019161058a565b9080601f830112156101415781602061011f93359101610563565b91909160408184031261014157803567ffffffffffffffff811161014157836105f59183016105b0565b92602082013567ffffffffffffffff81116101415761011f920161041a565b9061063461062d610623845190565b8084529260200190565b9260200190565b9060005b8181106106455750505090565b90919261066261065b6001928651815260200190565b9460200190565b929101610638565b602080825261011f92910190610614565b34610141576101b76106976106913660046105cb565b90610e42565b6040519182918261066a565b600091031261014157565b61011f916008021c73ffffffffffffffffffffffffffffffffffffffff1690565b9061011f91546106ae565b61011f600060046106cf565b34610141576106f63660046106a3565b6101b76107016106da565b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b34610141576107383660046106a3565b610323610f27565b34610141576107503660046106a3565b6101b7610701610f2f565b909182601f830112156101415781359167ffffffffffffffff831161014157602001926020830284011161014157565b6060818303126101415761079f8282610146565b92602082013567ffffffffffffffff811161014157836107c091840161075b565b929093604082013567ffffffffffffffff8111610141576107e1920161075b565b9091565b34610141576103236107f836600461078b565b93929092610fd2565b9060208282031261014157813567ffffffffffffffff81116101415761011f92016104a6565b346101415761032361083a366004610801565b610ff4565b80151561013a565b905035906101538261083f565b91906040838203126101415761011f9060206108708286610146565b9401610847565b346101415761032361088a366004610854565b90610ffd565b91906040838203126101415761011f9060206108ac8286610146565b9401610146565b34610141576101b761021f6108c9366004610890565b90611008565b91909160a081840312610141576108e68382610146565b926108f48160208401610146565b92610902826040850161015b565b92610528836060830161015b565b34610141576103236109233660046108cf565b9392909261102a565b346101415761032361093f3660046102f7565b61111c565b61011f61011f61011f9290565b9061095b90610944565b600052602052604060002090565b61010661011f61011f9273ffffffffffffffffffffffffffffffffffffffff1690565b61011f90610969565b61011f9061098c565b9061095b90610995565b61011f9081565b61011f90546109a8565b6109d9906109d461011f936109cc600090565b506000610951565b61099e565b6109af565b7fd9b67a26000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000821614908115610a3f575b8115610a35575090565b61011f9150611125565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f0e89341c00000000000000000000000000000000000000000000000000000000149150610a2b565b90610a986103d883610435565b918252565b61011f6000610a8b565b61011f610a9d565b6102bb610ac792602092610ac1815190565b94859290565b93849101610246565b610ade9061011f9392610aaf565b90610aaf565b610b04929161015391610af660405190565b948592602084019283610ad0565b90810382520383610357565b610b1981611285565b8051610b2c610b286000610944565b9190565b1115610b4457610b3e61011f926112e4565b90610ae4565b505061011f610aa7565b61015390610b5a6113a1565b610bc5565b61010661011f61011f9290565b61011f90610b5f565b61011f90610106565b61011f9054610b75565b9073ffffffffffffffffffffffffffffffffffffffff905b9181191691161790565b90610bba61011f610bc192610995565b8254610b88565b9055565b610bd26101066000610b6c565b73ffffffffffffffffffffffffffffffffffffffff821614610ca657610bf86004610b7e565b9073ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff831614610c7757610c3861015392610995565b610c4182610995565b907f8152f095a3c6cc9cfbded1338d5774b4b9ff0d9150746d9cd2485e92b5cd5b19610c6c60405190565b600090a36004610baa565b6040517f2620eb3a000000000000000000000000000000000000000000000000000000008152600490fd5b0390fd5b6040517fd92e233d000000000000000000000000000000000000000000000000000000008152600490fd5b61015390610b4e565b73ffffffffffffffffffffffffffffffffffffffff91821681529116602082015260400190565b94939291903373ffffffffffffffffffffffffffffffffffffffff871681141580610d73575b610d3657506101539495611413565b8690610ca2610d4460405190565b9283927fe237d92200000000000000000000000000000000000000000000000000000000845260048401610cda565b50610d85610d818289611008565b1590565b610d27565b9081526040810192916101539160200152565b0152565b90610a986103d8836103b0565b369037565b90610153610dc9610dc384610da1565b936103b0565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00160208401610dae565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90610e2c825190565b811015610e3d576020809102010190565b610df4565b908151610e53610b2861011f845190565b03610ec157610e68610e63835190565b610db3565b91610e736000610944565b610e7e61011f835190565b811015610ebb5780610eb0610ea3610e99610eb69486611542565b6101a18488611542565b610ead8388610e23565b52565b60010190565b610e73565b50505090565b519051610ece565b915190565b90610ca2610edb60405190565b9283927f5b05999100000000000000000000000000000000000000000000000000000000845260048401610d8a565b610f126113a1565b610153610153610f226000610b6c565b611558565b610153610f0a565b61011f6003610b7e565b93929190610f476004610b7e565b610f66335b9173ffffffffffffffffffffffffffffffffffffffff1690565b03610f745761015394610faa565b6040517f67e07278000000000000000000000000000000000000000000000000000000008152600490fd5b61011f9136916103c8565b929193610fbd61015395610fc393610f9f565b92610f9f565b90610fcc610aa7565b926115b1565b9061015394939291610f39565b61015390610feb6113a1565b610153906117ec565b61015390610fdf565b610153919033611817565b61011f916109d46110239261101b600090565b50600161099e565b5460ff1690565b94939291903373ffffffffffffffffffffffffffffffffffffffff87168114158061105f575b610d36575061015394956118ff565b5061106d610d818289611008565b611050565b6101539061107e6113a1565b6110886000610b6c565b73ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8316146110c5575061015390611558565b610ca2906110d260405190565b9182917f1e4fbdf70000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b61015390611072565b6111707f01ffc9a7000000000000000000000000000000000000000000000000000000005b917fffffffff000000000000000000000000000000000000000000000000000000001690565b1490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b90600160028304921680156111c3575b60208310146111be57565b611174565b91607f16916111b3565b805460009392916111ea6111e0836111a3565b8085529360200190565b916001811690811561123c575060011461120357505050565b6112169192939450600052602060002090565b916000925b8184106112285750500190565b80548484015260209093019260010161121b565b92949550505060ff1916825215156020020190565b9061011f916111cd565b906101536112759261126c60405190565b93848092611251565b0383610357565b61011f9061125b565b5061011f600261127c565b90610153610dc96112a084610a8b565b93610435565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b81156112df570490565b6112a6565b6112ed816119c4565b906112fe6001926102bb6001610944565b918061130984611290565b936020018401905b61131b5750505090565b811561139c57611380907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01927f3031323334353637383961626364656600000000000000000000000000000000600a82061a845361137a600a610944565b906112d5565b908161138f610b286000610944565b1461139c57909181611311565b610ebb565b6113a9610f2f565b33906113b482610f4c565b036113bc5750565b610ca2906113c960405190565b9182917f118cdaa70000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b94939291906114226000610b6c565b9573ffffffffffffffffffffffffffffffffffffffff871673ffffffffffffffffffffffffffffffffffffffff8316146114eb5773ffffffffffffffffffffffffffffffffffffffff871673ffffffffffffffffffffffffffffffffffffffff82161461149457610153959650611b66565b610ca2876114a160405190565b9182917f01a835140000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b610ca2876114f860405190565b9182917f57f447ce0000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b906020809161154f600090565b50029101015190565b61157e6115786115686003610b7e565b611573846003610baa565b610995565b91610995565b907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06115a960405190565b80805b0390a3565b939291906115bf6000610b6c565b9473ffffffffffffffffffffffffffffffffffffffff861673ffffffffffffffffffffffffffffffffffffffff8216146115fd576101539495611b66565b610ca2866114f860405190565b91906008610ba091029161163d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff841b90565b921b90565b919061165361011f610bc193610944565b90835461160a565b61015391600091611642565b818110611672575050565b80611680600060019361165b565b01611667565b9190601f811161169557505050565b6116a761015393600052602060002090565b906020601f8401819004830193106116c9575b6020601f909101040190611667565b90915081906116ba565b906116dc815190565b9067ffffffffffffffff821161039757611700826116fa85546111a3565b85611686565b602090601f831160011461175957610bc192916000918361174e575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600883021c1916906002021790565b01519050388061171c565b601f1983169161176e85600052602060002090565b9260005b8181106117ca57509160029391856001969410611793575b50505002019055565b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6008601f8516021c1916905538808061178a565b91936020600181928787015181550195019201611772565b90610153916116d3565b6101539060026117e2565b9060ff90610ba0565b9061181061011f610bc192151590565b82546117f7565b6118216000610b6c565b73ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8416146118a857506115ac61189e6118988361157387611893886109d47f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3199600161099e565b611800565b93610995565b9361022360405190565b610ca2906118b560405190565b9182917fced3e1000000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b90919493929461190f6000610b6c565b73ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8516146119b75773ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8416146119aa575061015394956119a260405192600184526020840152604083019160018352602083015260408201604052565b929091611b66565b610ca2906114a160405190565b610ca2906114f860405190565b6119ce6000610944565b907a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000006119f481610944565b821015611b44575b506d04ee2d6d415b85acef8100000000611a1581610944565b821015611b22575b50662386f26fc10000611a2f81610944565b821015611b00575b506305f5e100611a4681610944565b821015611ade575b50612710611a5b81610944565b821015611abc575b50611a6e6064610944565b811015611a9a575b611a83610b28600a610944565b1015611a8c5790565b61011f906102bb6001610944565b611aab611ab69161137a6064610944565b916102bb6002610944565b90611a76565b611ad79161137a611acc92610944565b916102bb6004610944565b9038611a63565b611af99161137a611aee92610944565b916102bb6008610944565b9038611a4e565b611b1b9161137a611b1092610944565b916102bb6010610944565b9038611a37565b611b3d9161137a611b3292610944565b916102bb6020610944565b9038611a1d565b611b5f9161137a611b5492610944565b916102bb6040610944565b90386119fc565b91939290611b7682868386611cee565b611b836101066000610b6c565b73ffffffffffffffffffffffffffffffffffffffff821603611ba7575b5050505050565b3392611bb1865190565b611bbe610b286001610944565b03611bf457611be4611bea96611bde611bd76000610944565b8092611542565b94611542565b936121c1565b3880808080611ba0565b611bff95929361201d565b611bea565b610d9d61015394611c42606094989795611c3b608086019a600087019073ffffffffffffffffffffffffffffffffffffffff169052565b6020850152565b6040830152565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90610ba0565b90611c8161011f610bc192610944565b8254611c49565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908201809211611cc457565b611c88565b604080825261011f939192611ce091840190610614565b916020818403910152610614565b9392909192611cfb845190565b611d09610b2861011f855190565b03611f52573393600091611d1c83610944565b611d2761011f845190565b811015611e8957611d388184611542565b90611d438187611542565b91611d4d86610b6c565b928873ffffffffffffffffffffffffffffffffffffffff851673ffffffffffffffffffffffffffffffffffffffff8d1603611dfa575b611dc49473ffffffffffffffffffffffffffffffffffffffff165b73ffffffffffffffffffffffffffffffffffffffff821603611dc9575b50505060010190565b611d1c565b611ddd611dec916109d4611df2958b610951565b91611de7836109af565b611cb7565b90611c71565b388088611dbb565b50909192611e0f6109d98c6109d4868b610951565b828110611e4b57611d9e8392611e438a8f611e3e908f968a611e38611dc49d9c9b6109d4930390565b94610951565b611c71565b955050611d83565b8b610ca28585611e5a60405190565b9485947f03dee4c500000000000000000000000000000000000000000000000000000000865260048601611c04565b5095929491611e96825190565b611ea3610b286001610944565b03611f0a57611ee9611ee96118987fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629594611ee3611bd7611eef96610944565b99611542565b94610995565b94611f05611efc60405190565b92839283610d8a565b0390a4565b5093611f3c611ee9611ee97f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb94610995565b94611f05611f4960405190565b92839283611cc9565b50610ece610ec9845190565b90505190610153826101bb565b906020828203126101415761011f91611f5e565b9390611fe29061011f9694611fd5611ff095611fb860a08a019460008b019073ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff166020890152565b8682036040880152610614565b908482036060860152610614565b916080818403910152610269565b3d156120185761200d3d610a8b565b903d6000602084013e565b606090565b92919490853b612030610b286000610944565b1161203e575b505050505050565b600060209461208f6120526115738a610995565b9461205c60405190565b988997889687957fbc197c8100000000000000000000000000000000000000000000000000000000875260048701611f7f565b03925af16000918161211f575b506120eb57506120b2565b388080808080612036565b6120ba611ffe565b906120c3825190565b6120d0610b286000610944565b036120e257610ca2906114f860405190565b50805190602001fd5b6121147fbc197c810000000000000000000000000000000000000000000000000000000061114a565b036119b757506120a7565b61214291925060203d602011612149575b61213a8183610357565b810190611f6b565b903861209c565b503d612130565b91936121ad61011f96946121a66121b4949761218960a0880199600089019073ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff166020870152565b6040850152565b6060830152565b6080818403910152610269565b92919490853b6121d4610b286000610944565b116121e157505050505050565b60006020946122326121f56115738a610995565b946121ff60405190565b988997889687957ff23a6e6100000000000000000000000000000000000000000000000000000000875260048701612150565b03925af160009181612273575b5061224a57506120b2565b6121147ff23a6e610000000000000000000000000000000000000000000000000000000061114a565b61228d91925060203d6020116121495761213a8183610357565b903861223f56fea264697066735822122011c0a940b7a86ea26360f2d87634005ce15e89b8def466b794732eff803b10ae64736f6c6343000819003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000004607c83b39690c3a8ada0a03cc920514e48d2c8f0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6168694a566167706666513633614b57515378537578764562386474636b4177377478696e743141507972412f00000000000000000000
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461010157806301ffc9a7146100fc5780630e89341c146100f75780632a2fb55b146100f25780632eb2c2d6146100ed5780634e1273f4146100e85780635275b4a8146100e3578063715018a6146100de5780638da5cb5b146100d95780639727756a146100d4578063a0bcfc7f146100cf578063a22cb465146100ca578063e985e9c5146100c5578063f242432a146100c05763f2fde38b036101415761092c565b610910565b6108b3565b610877565b610827565b6107e5565b610740565b610728565b6106e6565b61067b565b610547565b61030b565b6102d0565b610204565b61018b565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b73ffffffffffffffffffffffffffffffffffffffff81165b0361014157565b600080fd5b9050359061015382610122565b565b8061013a565b9050359061015382610155565b91906040838203126101415761011f9060206101848286610146565b940161015b565b34610141576101b76101a76101a1366004610168565b906109b9565b6040519182918290815260200190565b0390f35b7fffffffff00000000000000000000000000000000000000000000000000000000811661013a565b90503590610153826101bb565b906020828203126101415761011f916101e3565b34610141576101b761021f61021a3660046101f0565b6109de565b6040515b91829182901515815260200190565b906020828203126101415761011f9161015b565b60005b8381106102595750506000910152565b8181015183820152602001610249565b61028a6102936020936102bb9361027e815190565b80835293849260200190565b95869101610246565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b602080825261011f92910190610269565b34610141576101b76102eb6102e6366004610232565b610b10565b604051918291826102bf565b906020828203126101415761011f91610146565b346101415761032361031e3660046102f7565b610cd1565b604051005b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff82111761039757604052565b610328565b906101536103a960405190565b9283610357565b67ffffffffffffffff81116103975760208091020190565b909291926103dd6103d8826103b0565b61039c565b938185526020808601920283019281841161014157915b8383106104015750505050565b6020809161040f848661015b565b8152019201916103f4565b9080601f830112156101415781602061011f933591016103c8565b67ffffffffffffffff811161039757602090601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b90826000939282370152565b9092919261048c6103d882610435565b938185528183011161014157610153916020850190610470565b9080601f830112156101415781602061011f9335910161047c565b91909160a081840312610141576104d88382610146565b926104e68160208401610146565b92604083013567ffffffffffffffff8111610141578261050791850161041a565b92606081013567ffffffffffffffff8111610141578361052891830161041a565b92608082013567ffffffffffffffff81116101415761011f92016104a6565b346101415761032361055a3660046104c1565b93929092610d01565b909291926105736103d8826103b0565b938185526020808601920283019281841161014157915b8383106105975750505050565b602080916105a58486610146565b81520192019161058a565b9080601f830112156101415781602061011f93359101610563565b91909160408184031261014157803567ffffffffffffffff811161014157836105f59183016105b0565b92602082013567ffffffffffffffff81116101415761011f920161041a565b9061063461062d610623845190565b8084529260200190565b9260200190565b9060005b8181106106455750505090565b90919261066261065b6001928651815260200190565b9460200190565b929101610638565b602080825261011f92910190610614565b34610141576101b76106976106913660046105cb565b90610e42565b6040519182918261066a565b600091031261014157565b61011f916008021c73ffffffffffffffffffffffffffffffffffffffff1690565b9061011f91546106ae565b61011f600060046106cf565b34610141576106f63660046106a3565b6101b76107016106da565b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b34610141576107383660046106a3565b610323610f27565b34610141576107503660046106a3565b6101b7610701610f2f565b909182601f830112156101415781359167ffffffffffffffff831161014157602001926020830284011161014157565b6060818303126101415761079f8282610146565b92602082013567ffffffffffffffff811161014157836107c091840161075b565b929093604082013567ffffffffffffffff8111610141576107e1920161075b565b9091565b34610141576103236107f836600461078b565b93929092610fd2565b9060208282031261014157813567ffffffffffffffff81116101415761011f92016104a6565b346101415761032361083a366004610801565b610ff4565b80151561013a565b905035906101538261083f565b91906040838203126101415761011f9060206108708286610146565b9401610847565b346101415761032361088a366004610854565b90610ffd565b91906040838203126101415761011f9060206108ac8286610146565b9401610146565b34610141576101b761021f6108c9366004610890565b90611008565b91909160a081840312610141576108e68382610146565b926108f48160208401610146565b92610902826040850161015b565b92610528836060830161015b565b34610141576103236109233660046108cf565b9392909261102a565b346101415761032361093f3660046102f7565b61111c565b61011f61011f61011f9290565b9061095b90610944565b600052602052604060002090565b61010661011f61011f9273ffffffffffffffffffffffffffffffffffffffff1690565b61011f90610969565b61011f9061098c565b9061095b90610995565b61011f9081565b61011f90546109a8565b6109d9906109d461011f936109cc600090565b506000610951565b61099e565b6109af565b7fd9b67a26000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000821614908115610a3f575b8115610a35575090565b61011f9150611125565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f0e89341c00000000000000000000000000000000000000000000000000000000149150610a2b565b90610a986103d883610435565b918252565b61011f6000610a8b565b61011f610a9d565b6102bb610ac792602092610ac1815190565b94859290565b93849101610246565b610ade9061011f9392610aaf565b90610aaf565b610b04929161015391610af660405190565b948592602084019283610ad0565b90810382520383610357565b610b1981611285565b8051610b2c610b286000610944565b9190565b1115610b4457610b3e61011f926112e4565b90610ae4565b505061011f610aa7565b61015390610b5a6113a1565b610bc5565b61010661011f61011f9290565b61011f90610b5f565b61011f90610106565b61011f9054610b75565b9073ffffffffffffffffffffffffffffffffffffffff905b9181191691161790565b90610bba61011f610bc192610995565b8254610b88565b9055565b610bd26101066000610b6c565b73ffffffffffffffffffffffffffffffffffffffff821614610ca657610bf86004610b7e565b9073ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff831614610c7757610c3861015392610995565b610c4182610995565b907f8152f095a3c6cc9cfbded1338d5774b4b9ff0d9150746d9cd2485e92b5cd5b19610c6c60405190565b600090a36004610baa565b6040517f2620eb3a000000000000000000000000000000000000000000000000000000008152600490fd5b0390fd5b6040517fd92e233d000000000000000000000000000000000000000000000000000000008152600490fd5b61015390610b4e565b73ffffffffffffffffffffffffffffffffffffffff91821681529116602082015260400190565b94939291903373ffffffffffffffffffffffffffffffffffffffff871681141580610d73575b610d3657506101539495611413565b8690610ca2610d4460405190565b9283927fe237d92200000000000000000000000000000000000000000000000000000000845260048401610cda565b50610d85610d818289611008565b1590565b610d27565b9081526040810192916101539160200152565b0152565b90610a986103d8836103b0565b369037565b90610153610dc9610dc384610da1565b936103b0565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00160208401610dae565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90610e2c825190565b811015610e3d576020809102010190565b610df4565b908151610e53610b2861011f845190565b03610ec157610e68610e63835190565b610db3565b91610e736000610944565b610e7e61011f835190565b811015610ebb5780610eb0610ea3610e99610eb69486611542565b6101a18488611542565b610ead8388610e23565b52565b60010190565b610e73565b50505090565b519051610ece565b915190565b90610ca2610edb60405190565b9283927f5b05999100000000000000000000000000000000000000000000000000000000845260048401610d8a565b610f126113a1565b610153610153610f226000610b6c565b611558565b610153610f0a565b61011f6003610b7e565b93929190610f476004610b7e565b610f66335b9173ffffffffffffffffffffffffffffffffffffffff1690565b03610f745761015394610faa565b6040517f67e07278000000000000000000000000000000000000000000000000000000008152600490fd5b61011f9136916103c8565b929193610fbd61015395610fc393610f9f565b92610f9f565b90610fcc610aa7565b926115b1565b9061015394939291610f39565b61015390610feb6113a1565b610153906117ec565b61015390610fdf565b610153919033611817565b61011f916109d46110239261101b600090565b50600161099e565b5460ff1690565b94939291903373ffffffffffffffffffffffffffffffffffffffff87168114158061105f575b610d36575061015394956118ff565b5061106d610d818289611008565b611050565b6101539061107e6113a1565b6110886000610b6c565b73ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8316146110c5575061015390611558565b610ca2906110d260405190565b9182917f1e4fbdf70000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b61015390611072565b6111707f01ffc9a7000000000000000000000000000000000000000000000000000000005b917fffffffff000000000000000000000000000000000000000000000000000000001690565b1490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b90600160028304921680156111c3575b60208310146111be57565b611174565b91607f16916111b3565b805460009392916111ea6111e0836111a3565b8085529360200190565b916001811690811561123c575060011461120357505050565b6112169192939450600052602060002090565b916000925b8184106112285750500190565b80548484015260209093019260010161121b565b92949550505060ff1916825215156020020190565b9061011f916111cd565b906101536112759261126c60405190565b93848092611251565b0383610357565b61011f9061125b565b5061011f600261127c565b90610153610dc96112a084610a8b565b93610435565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b81156112df570490565b6112a6565b6112ed816119c4565b906112fe6001926102bb6001610944565b918061130984611290565b936020018401905b61131b5750505090565b811561139c57611380907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01927f3031323334353637383961626364656600000000000000000000000000000000600a82061a845361137a600a610944565b906112d5565b908161138f610b286000610944565b1461139c57909181611311565b610ebb565b6113a9610f2f565b33906113b482610f4c565b036113bc5750565b610ca2906113c960405190565b9182917f118cdaa70000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b94939291906114226000610b6c565b9573ffffffffffffffffffffffffffffffffffffffff871673ffffffffffffffffffffffffffffffffffffffff8316146114eb5773ffffffffffffffffffffffffffffffffffffffff871673ffffffffffffffffffffffffffffffffffffffff82161461149457610153959650611b66565b610ca2876114a160405190565b9182917f01a835140000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b610ca2876114f860405190565b9182917f57f447ce0000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b906020809161154f600090565b50029101015190565b61157e6115786115686003610b7e565b611573846003610baa565b610995565b91610995565b907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06115a960405190565b80805b0390a3565b939291906115bf6000610b6c565b9473ffffffffffffffffffffffffffffffffffffffff861673ffffffffffffffffffffffffffffffffffffffff8216146115fd576101539495611b66565b610ca2866114f860405190565b91906008610ba091029161163d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff841b90565b921b90565b919061165361011f610bc193610944565b90835461160a565b61015391600091611642565b818110611672575050565b80611680600060019361165b565b01611667565b9190601f811161169557505050565b6116a761015393600052602060002090565b906020601f8401819004830193106116c9575b6020601f909101040190611667565b90915081906116ba565b906116dc815190565b9067ffffffffffffffff821161039757611700826116fa85546111a3565b85611686565b602090601f831160011461175957610bc192916000918361174e575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600883021c1916906002021790565b01519050388061171c565b601f1983169161176e85600052602060002090565b9260005b8181106117ca57509160029391856001969410611793575b50505002019055565b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6008601f8516021c1916905538808061178a565b91936020600181928787015181550195019201611772565b90610153916116d3565b6101539060026117e2565b9060ff90610ba0565b9061181061011f610bc192151590565b82546117f7565b6118216000610b6c565b73ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8416146118a857506115ac61189e6118988361157387611893886109d47f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3199600161099e565b611800565b93610995565b9361022360405190565b610ca2906118b560405190565b9182917fced3e1000000000000000000000000000000000000000000000000000000000083526004830173ffffffffffffffffffffffffffffffffffffffff909116815260200190565b90919493929461190f6000610b6c565b73ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8516146119b75773ffffffffffffffffffffffffffffffffffffffff811673ffffffffffffffffffffffffffffffffffffffff8416146119aa575061015394956119a260405192600184526020840152604083019160018352602083015260408201604052565b929091611b66565b610ca2906114a160405190565b610ca2906114f860405190565b6119ce6000610944565b907a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000006119f481610944565b821015611b44575b506d04ee2d6d415b85acef8100000000611a1581610944565b821015611b22575b50662386f26fc10000611a2f81610944565b821015611b00575b506305f5e100611a4681610944565b821015611ade575b50612710611a5b81610944565b821015611abc575b50611a6e6064610944565b811015611a9a575b611a83610b28600a610944565b1015611a8c5790565b61011f906102bb6001610944565b611aab611ab69161137a6064610944565b916102bb6002610944565b90611a76565b611ad79161137a611acc92610944565b916102bb6004610944565b9038611a63565b611af99161137a611aee92610944565b916102bb6008610944565b9038611a4e565b611b1b9161137a611b1092610944565b916102bb6010610944565b9038611a37565b611b3d9161137a611b3292610944565b916102bb6020610944565b9038611a1d565b611b5f9161137a611b5492610944565b916102bb6040610944565b90386119fc565b91939290611b7682868386611cee565b611b836101066000610b6c565b73ffffffffffffffffffffffffffffffffffffffff821603611ba7575b5050505050565b3392611bb1865190565b611bbe610b286001610944565b03611bf457611be4611bea96611bde611bd76000610944565b8092611542565b94611542565b936121c1565b3880808080611ba0565b611bff95929361201d565b611bea565b610d9d61015394611c42606094989795611c3b608086019a600087019073ffffffffffffffffffffffffffffffffffffffff169052565b6020850152565b6040830152565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90610ba0565b90611c8161011f610bc192610944565b8254611c49565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908201809211611cc457565b611c88565b604080825261011f939192611ce091840190610614565b916020818403910152610614565b9392909192611cfb845190565b611d09610b2861011f855190565b03611f52573393600091611d1c83610944565b611d2761011f845190565b811015611e8957611d388184611542565b90611d438187611542565b91611d4d86610b6c565b928873ffffffffffffffffffffffffffffffffffffffff851673ffffffffffffffffffffffffffffffffffffffff8d1603611dfa575b611dc49473ffffffffffffffffffffffffffffffffffffffff165b73ffffffffffffffffffffffffffffffffffffffff821603611dc9575b50505060010190565b611d1c565b611ddd611dec916109d4611df2958b610951565b91611de7836109af565b611cb7565b90611c71565b388088611dbb565b50909192611e0f6109d98c6109d4868b610951565b828110611e4b57611d9e8392611e438a8f611e3e908f968a611e38611dc49d9c9b6109d4930390565b94610951565b611c71565b955050611d83565b8b610ca28585611e5a60405190565b9485947f03dee4c500000000000000000000000000000000000000000000000000000000865260048601611c04565b5095929491611e96825190565b611ea3610b286001610944565b03611f0a57611ee9611ee96118987fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629594611ee3611bd7611eef96610944565b99611542565b94610995565b94611f05611efc60405190565b92839283610d8a565b0390a4565b5093611f3c611ee9611ee97f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb94610995565b94611f05611f4960405190565b92839283611cc9565b50610ece610ec9845190565b90505190610153826101bb565b906020828203126101415761011f91611f5e565b9390611fe29061011f9694611fd5611ff095611fb860a08a019460008b019073ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff166020890152565b8682036040880152610614565b908482036060860152610614565b916080818403910152610269565b3d156120185761200d3d610a8b565b903d6000602084013e565b606090565b92919490853b612030610b286000610944565b1161203e575b505050505050565b600060209461208f6120526115738a610995565b9461205c60405190565b988997889687957fbc197c8100000000000000000000000000000000000000000000000000000000875260048701611f7f565b03925af16000918161211f575b506120eb57506120b2565b388080808080612036565b6120ba611ffe565b906120c3825190565b6120d0610b286000610944565b036120e257610ca2906114f860405190565b50805190602001fd5b6121147fbc197c810000000000000000000000000000000000000000000000000000000061114a565b036119b757506120a7565b61214291925060203d602011612149575b61213a8183610357565b810190611f6b565b903861209c565b503d612130565b91936121ad61011f96946121a66121b4949761218960a0880199600089019073ffffffffffffffffffffffffffffffffffffffff169052565b73ffffffffffffffffffffffffffffffffffffffff166020870152565b6040850152565b6060830152565b6080818403910152610269565b92919490853b6121d4610b286000610944565b116121e157505050505050565b60006020946122326121f56115738a610995565b946121ff60405190565b988997889687957ff23a6e6100000000000000000000000000000000000000000000000000000000875260048701612150565b03925af160009181612273575b5061224a57506120b2565b6121147ff23a6e610000000000000000000000000000000000000000000000000000000061114a565b61228d91925060203d6020116121495761213a8183610357565b903861223f56fea264697066735822122011c0a940b7a86ea26360f2d87634005ce15e89b8def466b794732eff803b10ae64736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000004607c83b39690c3a8ada0a03cc920514e48d2c8f0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6168694a566167706666513633614b57515378537578764562386474636b4177377478696e743141507972412f00000000000000000000
-----Decoded View---------------
Arg [0] : baseUri (string): ipfs://QmahiJVagpffQ63aKWQSxSuxvEb8dtckAw7txint1APyrA/
Arg [1] : owner (address): 0x4607c83B39690c3A8aDa0a03cc920514E48D2c8f
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000004607c83b39690c3a8ada0a03cc920514e48d2c8f
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [3] : 697066733a2f2f516d6168694a566167706666513633614b5751537853757876
Arg [4] : 4562386474636b4177377478696e743141507972412f00000000000000000000
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.