ERC-1155
Overview
Max Total Supply
0 PJS
Holders
70
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PixieJarsStories
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.17; import "./IPixieJarsStories.sol"; import "./contracts/extensions/ERC1155PSupply.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** @title Pixie Jars Stories * @author 0xjustadev/0xth0mas * @notice Token contract for the Pixie Jars Stories collection. * Minting and burning are handled by an external contract that * is granted permission by the contract owner. * This contract implements ERC1155P which is optimized for * collecting multiple tokens within a collection. */ contract PixieJarsStories is IPixieJarsStories, ERC1155PSupply, Ownable { /** * @dev Mapping of allowed minter addresses to access burn/mint functions */ mapping(address => bool) private allowedMinter; modifier onlyAllowedMinter() { if (!allowedMinter[msg.sender]) { revert UnauthorizedMinter(); } _; } constructor() ERC1155P("Pixie Jars Stories", "PJS") {} /** * @dev Mints single token for given address, can only be called by authorized minting contracts. */ function mint( address to, uint256 id, uint256 amount ) external onlyAllowedMinter { _mint(to, id, amount, ""); } /** * @dev Mints batch of tokens for given address, can only be called by authorized minting contracts. */ function mintBatch( address to, uint256[] calldata ids, uint256[] calldata amounts ) external onlyAllowedMinter { _mintBatch(to, ids, amounts, ""); } /** * @dev Burns single token for given address, can only be called by authorized minting contracts. */ function burn( address from, uint256 burnId, uint256 burnAmount ) external onlyAllowedMinter { _burn(from, burnId, burnAmount); } /** * @dev Burns batch of tokens for given address, can only be called by authorized minting contracts. */ function burnBatch( address from, uint256[] calldata burnIds, uint256[] calldata burnAmounts ) external onlyAllowedMinter { _burnBatch(from, burnIds, burnAmounts); } /** * @dev Sets allowed for given minter. Allows address to call the mint and burn functions. */ function setAllowedMinter(address minter, bool allowed) external onlyOwner { allowedMinter[minter] = allowed; } /** * @dev Sets `tokenURI` as the tokenURI of `tokenId`. */ function setTokenURI( uint256 tokenId, string calldata tokenURI ) external onlyOwner { _setURI(tokenId, tokenURI); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155P.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155PSupply is ERC1155P { /** * @dev Custom storage pointer for total token supply. Total supply is * split into buckets of 8 tokens per bucket allowing for 32 bits * per token for a max value of 0xFFFFFFFF (~4.3B) of a single token. * The standard ERC1155P implementation allows a maximum token id * of 0xFFFFFFFFFFFFFFFFFFFFFFFFF which requires a max bucket count of * 1FFFFFFFFFFFFFFFFFFFFFFFF. Storage slots for buckets start at * 0xF000000000000000000000000000000000000000000000000000000000000000 * and continue through * 0xF000000000000000000000000000000000000001FFFFFFFFFFFFFFFFFFFFFFFF * There are two addresses 0xF00...000 and 0xF00...001 that could create * storage collisions with wallet balance data however the probability of * that collision is extremely small ~1/2^159. */ uint256 private constant TOTAL_SUPPLY_STORAGE_OFFSET = 0xF000000000000000000000000000000000000000000000000000000000000000; uint256 private constant MAX_TOTAL_SUPPLY = 0xFFFFFFFF; /** * Total supply exceeds maximum. */ error ExceedsMaximumTotalSupply(); /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view returns (uint256 _totalSupply) { assembly { let ptr := mload(0x40) mstore(ptr, or(TOTAL_SUPPLY_STORAGE_OFFSET, shr(3, id))) _totalSupply := shr(shl(5, and(id, 0x07)), and(sload(mload(ptr)), shl(shl(5, and(id, 0x07)), 0xFFFFFFFF))) } return _totalSupply; } /** * @dev Sets total supply in custom storage slot location */ function setTotalSupply(uint256 id, uint256 amount) private { assembly { let ptr := mload(0x40) mstore(ptr, or(TOTAL_SUPPLY_STORAGE_OFFSET, shr(3, id))) mstore(add(ptr, 0x20), sload(mload(ptr))) mstore(add(ptr, 0x20), or(and(not(shl(shl(5, and(id, 0x07)), 0xFFFFFFFF)), mload(add(ptr, 0x20))), shl(shl(5, and(id, 0x07)), amount))) sstore(mload(ptr), mload(add(ptr, 0x20))) } } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return this.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address, address from, address to, uint256 id, uint256 amount, bytes memory ) internal virtual override { if (from == address(0)) { uint256 supply = this.totalSupply(id); unchecked { supply += amount; } if(supply > MAX_TOTAL_SUPPLY) { ERC1155P._revert(ExceedsMaximumTotalSupply.selector); } setTotalSupply(id, supply); } if (to == address(0)) { uint256 supply = this.totalSupply(id); unchecked { supply -= amount; } setTotalSupply(id, supply); } } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeBatchTokenTransfer( address, address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes memory ) internal virtual override { if (from == address(0)) { for (uint256 i = 0; i < ids.length;) { uint256 id = ids[i]; uint256 supply = this.totalSupply(id); unchecked { supply += amounts[i]; ++i; } if(supply > MAX_TOTAL_SUPPLY) { ERC1155P._revert(ExceedsMaximumTotalSupply.selector); } setTotalSupply(id, supply); } } if (to == address(0)) { for (uint256 i = 0; i < ids.length;) { uint256 id = ids[i]; uint256 supply = this.totalSupply(id); unchecked { supply -= amounts[i]; ++i; } setTotalSupply(id, supply); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IPixieJarsStories { error UnauthorizedMinter(); function mint(address to, uint256 id, uint256 amount) external; function mintBatch(address to, uint256[] calldata ids, uint256[] calldata amounts) external; function burn(address from, uint256 burnId, uint256 burnAmount) external; function burnBatch(address from, uint256[] calldata burnIds, uint256[] calldata burnAmounts) external; function setAllowedMinter(address minter, bool allowed) external; }
// SPDX-License-Identifier: MIT // ERC721P Contracts v1.0.0 // Creator: 0xjustadev/0xth0mas // Special thanks to those who provided early feedback and reviews: // - 0xQuit, emo.eth, Layerr, // - euphoric.eth, Gallwas, Rookmate // - and wagglefoot pragma solidity >=0.8.17; import "./IERC1155P.sol"; /** * @dev Interface of ERC1155 token receiver. */ interface ERC1155P__IERC1155Receiver { function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } /** * @dev Interface for IERC1155MetadataURI. */ interface ERC1155P__IERC1155MetadataURI { /** * @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); } /** * @title ERC721P * * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 including the Metadata extension. * Optimized for lower gas for users collecting multiple tokens. * * Assumptions: * - An owner cannot have more than 2**16 - 1 of a single token * - The maximum token ID cannot exceed 2**100 - 1 */ contract ERC1155P is IERC1155P, ERC1155P__IERC1155MetadataURI { /** * @dev MAX_ACCOUNT_TOKEN_BALANCE is 2^16-1 because token balances are * are being packed into 16 bits within each bucket. */ uint256 private constant MAX_ACCOUNT_TOKEN_BALANCE = 0xFFFF; /** * @dev MAX_TOKEN_ID is derived from custom storage pointer location for * account/token balance data. Wallet address is shifted 96 bits left * and leaves 96 bits for bucket #'s. Each bucket holds 16 token balances * 2^96*16-1 = MAX_TOKEN_ID */ uint256 private constant MAX_TOKEN_ID = 0xFFFFFFFFFFFFFFFFFFFFFFFFF; // The `TransferSingle` event signature is given by: // `keccak256(bytes("TransferSingle(address,address,address,uint256,uint256)"))`. bytes32 private constant _TRANSFER_SINGLE_EVENT_SIGNATURE = 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62; // The `TransferBatch` event signature is given by: // `keccak256(bytes("TransferBatch(address,address,address,uint256[],uint256[])"))`. bytes32 private constant _TRANSFER_BATCH_EVENT_SIGNATURE = 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb; // The `ApprovalForAll` event signature is given by: // `keccak256(bytes("ApprovalForAll(address,address,bool)"))`. bytes32 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE = 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31; string public name; //collection name string public symbol; //collection symbol // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev constructor initialization of name and symbol parameters * @param _name the name to display for the collection * @param _symbol the symbol for the token collection */ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0xd9b67a26 || // ERC165 interface ID for ERC1155. interfaceId == 0x0e89341c; // ERC165 interface ID for ERC1155MetadataURI. } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function uri(uint256 id) public view virtual override returns (string memory) { string memory tokenURI = _tokenURIs[id]; string memory baseURI = _baseURI(); return bytes(tokenURI).length > 0 ? tokenURI : bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(id))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Sets `tokenURI` as the tokenURI of `tokenId`. */ function _setURI(uint256 tokenId, string calldata tokenURI) internal virtual { _tokenURIs[tokenId] = tokenURI; emit URI(uri(tokenId), tokenId); } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { if(account == address(0)) { _revert(BalanceQueryForZeroAddress.selector); } return getBalance(account, id); } /** * @dev Gets the balance of an account's token id from packed token data * */ function getBalance(address account, uint256 id) private view returns (uint256 _balance) { assembly { let ptr := mload(0x40) mstore(ptr, or(shl(96, account), shr(4, id))) _balance := shr(shl(4, and(id, 0x0F)), and(sload(mload(ptr)), shl(shl(4, and(id, 0x0F)), 0xFFFF))) } return _balance; } /** * @dev Sets the balance of an account's token id in packed token data * */ function setBalance(address account, uint256 id, uint256 amount) private { assembly { let ptr := mload(0x40) mstore(ptr, or(shl(96, account), shr(4, id))) mstore(add(ptr, 0x20), sload(mload(ptr))) mstore(add(ptr, 0x20), or(and(not(shl(shl(4, and(id, 0x0F)), 0xFFFF)), mload(add(ptr, 0x20))), shl(shl(4, and(id, 0x0F)), amount))) sstore(mload(ptr), mload(add(ptr, 0x20))) } } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] calldata accounts, uint256[] calldata ids ) public view virtual override returns (uint256[] memory) { if(accounts.length != ids.length) { _revert(ArrayLengthMismatch.selector); } uint256[] memory batchBalances = new uint256[](accounts.length); for(uint256 i = 0; i < accounts.length;) { batchBalances[i] = balanceOf(accounts[i], ids[i]); unchecked { ++i; } } return batchBalances; } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool _approved) { assembly { let ptr := mload(0x40) mstore(ptr, account) mstore(add(ptr, 0x20), operator) let slot := keccak256(ptr, 0x40) _approved := sload(slot) } return _approved; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes memory data ) public virtual override { _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); } if(to == address(0)) { _revert(TransferToZeroAddress.selector); } if(from != _msgSenderERC1155P()) if (!isApprovedForAll(from, _msgSenderERC1155P())) _revert(TransferCallerNotOwnerNorApproved.selector); address operator = _msgSenderERC1155P(); _beforeTokenTransfer(operator, from, to, id, amount, data); if(from != to) { uint256 fromBalance = getBalance(from, id); if(amount > fromBalance) { _revert(TransferExceedsBalance.selector); } uint256 toBalance = getBalance(to, id); unchecked { fromBalance -= amount; toBalance += amount; } if(toBalance > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); } setBalance(from, id, fromBalance); setBalance(to, id, toBalance); } assembly { // Emit the `TransferSingle` event. let memOffset := mload(0x40) mstore(memOffset, id) mstore(add(memOffset, 0x20), amount) log4( memOffset, // Start of data . 0x40, // Length of data. _TRANSFER_SINGLE_EVENT_SIGNATURE, // Signature. operator, // `operator`. from, // `from`. to // `to`. ) } _afterTokenTransfer(operator, from, to, id, amount, data); if(to.code.length != 0) if(!_checkContractOnERC1155Received(from, to, id, amount, data)) { _revert(TransferToNonERC1155ReceiverImplementer.selector); } } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes memory data ) internal virtual { if(to == address(0)) { _revert(TransferToZeroAddress.selector); } if(ids.length != amounts.length) { _revert(ArrayLengthMismatch.selector); } if(from != _msgSenderERC1155P()) if (!isApprovedForAll(from, _msgSenderERC1155P())) _revert(TransferCallerNotOwnerNorApproved.selector); address operator = _msgSenderERC1155P(); _beforeBatchTokenTransfer(operator, from, to, ids, amounts, data); if(from != to) { for (uint256 i = 0; i < ids.length;) { uint256 id = ids[i]; uint256 amount = amounts[i]; if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); } uint256 fromBalance = getBalance(from, id); if(amount > fromBalance) { _revert(TransferExceedsBalance.selector); } uint256 toBalance = getBalance(to, id); unchecked { fromBalance -= amount; toBalance += amount; } if(toBalance > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); } setBalance(from, id, fromBalance); setBalance(to, id, toBalance); unchecked { ++i; } } } assembly { let memOffset := mload(0x40) mstore(memOffset, 0x40) mstore(add(memOffset,0x20), add(0x60, mul(0x20,ids.length))) mstore(add(memOffset,0x40), ids.length) calldatacopy(add(memOffset,0x60), ids.offset, mul(0x20,ids.length)) mstore(add(add(memOffset,0x60),mul(0x20,ids.length)), amounts.length) calldatacopy(add(add(memOffset,0x80),mul(0x20,ids.length)), amounts.offset, mul(0x20,amounts.length)) log4( memOffset, add(0x80,mul(0x40,amounts.length)), _TRANSFER_BATCH_EVENT_SIGNATURE, // Signature. operator, // `operator`. from, // `from`. to // `to`. ) } _afterBatchTokenTransfer(operator, from, to, ids, amounts, data); if(to.code.length != 0) if(!_checkContractOnERC1155BatchReceived(from, to, ids, amounts, data)) { _revert(TransferToNonERC1155ReceiverImplementer.selector); } } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual { if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); } if(to == address(0)) { _revert(MintToZeroAddress.selector); } if(amount == 0) { _revert(MintZeroQuantity.selector); } address operator = _msgSenderERC1155P(); _beforeTokenTransfer(operator, address(0), to, id, amount, data); uint256 toBalance = getBalance(to, id); unchecked { toBalance += amount; } if(toBalance > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); } setBalance(to, id, toBalance); assembly { // Emit the `TransferSingle` event. let memOffset := mload(0x40) mstore(memOffset, id) mstore(add(memOffset, 0x20), amount) log4( memOffset, // Start of data . 0x40, // Length of data. _TRANSFER_SINGLE_EVENT_SIGNATURE, // Signature. operator, // `operator`. 0, // `from`. to // `to`. ) } _afterTokenTransfer(operator, address(0), to, id, amount, data); if(to.code.length != 0) if(!_checkContractOnERC1155Received(address(0), to, id, amount, data)) { _revert(TransferToNonERC1155ReceiverImplementer.selector); } } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] calldata ids, uint256[] calldata amounts, bytes memory data ) internal virtual { if(to == address(0)) { _revert(MintToZeroAddress.selector); } if(ids.length != amounts.length) { _revert(ArrayLengthMismatch.selector); } address operator = _msgSenderERC1155P(); _beforeBatchTokenTransfer(operator, address(0), to, ids, amounts, data); uint256 id; uint256 amount; for (uint256 i = 0; i < ids.length;) { id = ids[i]; amount = amounts[i]; if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); } if(amount == 0) { _revert(MintZeroQuantity.selector); } uint256 toBalance = getBalance(to, id); unchecked { toBalance += amount; } if(toBalance > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); } setBalance(to, id, toBalance); unchecked { ++i; } } assembly { let memOffset := mload(0x40) mstore(memOffset, 0x40) mstore(add(memOffset,0x20), add(0x60, mul(0x20,ids.length))) mstore(add(memOffset,0x40), ids.length) calldatacopy(add(memOffset,0x60), ids.offset, mul(0x20,ids.length)) mstore(add(add(memOffset,0x60),mul(0x20,ids.length)), amounts.length) calldatacopy(add(add(memOffset,0x80),mul(0x20,ids.length)), amounts.offset, mul(0x20,amounts.length)) log4( memOffset, add(0x80,mul(0x40,amounts.length)), _TRANSFER_BATCH_EVENT_SIGNATURE, // Signature. operator, // `operator`. 0, // `from`. to // `to`. ) } _afterBatchTokenTransfer(operator, address(0), to, ids, amounts, data); if(to.code.length != 0) if(!_checkContractOnERC1155BatchReceived(address(0), to, ids, amounts, data)) { _revert(TransferToNonERC1155ReceiverImplementer.selector); } } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn(address from, uint256 id, uint256 amount) internal virtual { if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); } if(from == address(0)) { _revert(BurnFromZeroAddress.selector); } address operator = _msgSenderERC1155P(); _beforeTokenTransfer(operator, from, address(0), id, amount, ""); uint256 fromBalance = getBalance(from, id); if(amount > fromBalance) { _revert(BurnExceedsBalance.selector); } unchecked { fromBalance -= amount; } setBalance(from, id, fromBalance); assembly { // Emit the `TransferSingle` event. let memOffset := mload(0x40) mstore(memOffset, id) mstore(add(memOffset, 0x20), amount) log4( memOffset, // Start of data. 0x40, // Length of data. _TRANSFER_SINGLE_EVENT_SIGNATURE, // Signature. operator, // `operator`. from, // `from`. 0 // `to`. ) } _afterTokenTransfer(operator, from, address(0), id, amount, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch(address from, uint256[] calldata ids, uint256[] calldata amounts) internal virtual { if(from == address(0)) { _revert(BurnFromZeroAddress.selector); } if(ids.length != amounts.length) { _revert(ArrayLengthMismatch.selector); } address operator = _msgSenderERC1155P(); _beforeBatchTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length;) { uint256 id = ids[i]; uint256 amount = amounts[i]; if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); } uint256 fromBalance = getBalance(from, id); if(amount > fromBalance) { _revert(BurnExceedsBalance.selector); } unchecked { fromBalance -= amount; } setBalance(from, id, fromBalance); unchecked { ++i; } } assembly { let memOffset := mload(0x40) mstore(memOffset, 0x40) mstore(add(memOffset,0x20), add(0x60, mul(0x20,ids.length))) mstore(add(memOffset,0x40), ids.length) calldatacopy(add(memOffset,0x60), ids.offset, mul(0x20,ids.length)) mstore(add(add(memOffset,0x60),mul(0x20,ids.length)), amounts.length) calldatacopy(add(add(memOffset,0x80),mul(0x20,ids.length)), amounts.offset, mul(0x20,amounts.length)) log4( memOffset, add(0x80,mul(0x40,amounts.length)), _TRANSFER_BATCH_EVENT_SIGNATURE, // Signature. operator, // `operator`. from, // `from`. 0 // `to`. ) } _afterBatchTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { assembly { let ptr := mload(0x40) mstore(ptr, caller()) mstore(add(ptr, 0x20), operator) let slot := keccak256(ptr, 0x40) sstore(slot, approved) mstore(ptr, approved) log3( ptr, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), operator ) } } /** * @dev Hook that is called before any single token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual {} /** * @dev Hook that is called before any batch token transfer. This includes minting * and burning. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeBatchTokenTransfer( address operator, address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any single token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any batch token transfer. This includes minting * and burning. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterBatchTokenTransfer( address operator, address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes memory data ) internal virtual {} /** * @dev Private function to invoke {IERC1155Receiver-onERC155Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `id` - Token ID to be transferred. * `amount` - Balance of token to be transferred * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC1155Received( address from, address to, uint256 id, uint256 amount, bytes memory _data ) private returns (bool) { try ERC1155P__IERC1155Receiver(to).onERC1155Received(_msgSenderERC1155P(), from, id, amount, _data) returns ( bytes4 retval ) { return retval == ERC1155P__IERC1155Receiver(to).onERC1155Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC1155ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } /** * @dev Private function to invoke {IERC1155Receiver-onERC155Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `id` - Token ID to be transferred. * `amount` - Balance of token to be transferred * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC1155BatchReceived( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes memory _data ) private returns (bool) { try ERC1155P__IERC1155Receiver(to).onERC1155BatchReceived(_msgSenderERC1155P(), from, ids, amounts, _data) returns ( bytes4 retval ) { return retval == ERC1155P__IERC1155Receiver(to).onERC1155BatchReceived.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC1155ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC1155P() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721P Contracts v1.0.0 pragma solidity >=0.8.17; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155P { /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Arrays cannot be different lengths. */ error ArrayLengthMismatch(); /** * Cannot burn from the zero address. */ error BurnFromZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The quantity of tokens being burned is greater than account balance. */ error BurnExceedsBalance(); /** * The quantity of tokens being transferred is greater than account balance. */ error TransferExceedsBalance(); /** * The resulting token balance exceeds the maximum storable by ERC1155P */ error ExceedsMaximumBalance(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * Cannot safely transfer to a contract that does not implement the * ERC1155Receiver interface. */ error TransferToNonERC1155ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * Exceeds max token ID */ error ExceedsMaximumTokenId(); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] calldata accounts, uint256[] calldata ids ) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BurnExceedsBalance","type":"error"},{"inputs":[],"name":"BurnFromZeroAddress","type":"error"},{"inputs":[],"name":"ExceedsMaximumBalance","type":"error"},{"inputs":[],"name":"ExceedsMaximumTokenId","type":"error"},{"inputs":[],"name":"ExceedsMaximumTotalSupply","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferExceedsBalance","type":"error"},{"inputs":[],"name":"TransferToNonERC1155ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"UnauthorizedMinter","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"burnId","type":"uint256"},{"internalType":"uint256","name":"burnAmount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"burnIds","type":"uint256[]"},{"internalType":"uint256[]","name":"burnAmounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"_approved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setAllowedMinter","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051806040016040528060128152602001715069786965204a6172732053746f7269657360701b81525060405180604001604052806003815260200162504a5360e81b81525081600090816200006a919062000197565b50600162000079828262000197565b50505062000096620000906200009c60201b60201c565b620000a0565b62000263565b3390565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011d57607f821691505b6020821081036200013e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019257600081815260208120601f850160051c810160208610156200016d5750805b601f850160051c820191505b818110156200018e5782815560010162000179565b5050505b505050565b81516001600160401b03811115620001b357620001b3620000f2565b620001cb81620001c4845462000108565b8462000144565b602080601f831160018114620002035760008415620001ea5750858301515b600019600386901b1c1916600185901b1785556200018e565b600085815260208120601f198616915b82811015620002345788860151825594840194600190910190840162000213565b5085821015620002535787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61204e80620002736000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c80636b20c454116100b8578063bd85b0391161007c578063bd85b0391461027e578063d81d0a15146102b6578063e985e9c5146102c9578063f242432a146102ec578063f2fde38b146102ff578063f5298aca1461031257600080fd5b80636b20c4541461022d578063715018a6146102405780638da5cb5b1461024857806395d89b4114610263578063a22cb4651461026b57600080fd5b8063162094c4116100ff578063162094c4146101c15780632eb2c2d6146101d45780634e1273f4146101e75780634f558e79146102075780636af9c2051461021a57600080fd5b8062fdd58e1461013b57806301ffc9a71461016157806306fdde03146101845780630e89341c14610199578063156e29f6146101ac575b600080fd5b61014e610149366004611836565b610325565b6040519081526020015b60405180910390f35b61017461016f366004611876565b610356565b6040519015158152602001610158565b61018c6103a8565b60405161015891906118e3565b61018c6101a73660046118f6565b610436565b6101bf6101ba36600461190f565b61054d565b005b6101bf6101cf366004611942565b61059d565b6101bf6101e2366004611aad565b6105b0565b6101fa6101f5366004611b62565b6105c8565b6040516101589190611bce565b6101746102153660046118f6565b6106aa565b6101bf610228366004611c12565b610716565b6101bf61023b366004611c4e565b610749565b6101bf61078d565b6003546040516001600160a01b039091168152602001610158565b61018c6107a1565b6101bf610279366004611c12565b6107ae565b61014e61028c3660046118f6565b604051600382901c600f60fc1b17908190525463ffffffff60059290921b60e01691821b16901c90565b6101bf6102c4366004611c4e565b6107f1565b6101746102d7366004611ccf565b60408051928352602083019190915290205490565b6101bf6102fa366004611d02565b61083e565b6101bf61030d366004611d74565b61084b565b6101bf61032036600461190f565b6108c9565b60006001600160a01b038316610345576103456323d3ad8160e21b610904565b61034f838361090e565b9392505050565b60006301ffc9a760e01b6001600160e01b0319831614806103875750636cdb3d1360e11b6001600160e01b03198316145b806103a257506303a24d0760e21b6001600160e01b03198316145b92915050565b600080546103b590611d8f565b80601f01602080910402602001604051908101604052809291908181526020018280546103e190611d8f565b801561042e5780601f106104035761010080835404028352916020019161042e565b820191906000526020600020905b81548152906001019060200180831161041157829003601f168201915b505050505081565b60008181526002602052604081208054606092919061045490611d8f565b80601f016020809104026020016040519081016040528092919081815260200182805461048090611d8f565b80156104cd5780601f106104a2576101008083540402835291602001916104cd565b820191906000526020600020905b8154815290600101906020018083116104b057829003601f168201915b5050505050905060006104eb60408051602081019091526000815290565b905060008251116105435780516000036105145760405180602001604052806000815250610545565b8061051e8561093e565b60405160200161052f929190611dc9565b604051602081830303815290604052610545565b815b949350505050565b3360009081526004602052604090205460ff1661057d5760405163955c501b60e01b815260040160405180910390fd5b61059883838360405180602001604052806000815250610982565b505050565b6105a5610a8b565b610598838383610ae5565b6105bf87878787878787610b44565b50505050505050565b60608382146105e1576105e163512509d360e11b610904565b60008467ffffffffffffffff8111156105fc576105fc611a0a565b604051908082528060200260200182016040528015610625578160200160208202803683370190505b50905060005b858110156106a05761067b87878381811061064857610648611df8565b905060200201602081019061065d9190611d74565b86868481811061066f5761066f611df8565b90506020020135610325565b82828151811061068d5761068d611df8565b602090810291909101015260010161062b565b5095945050505050565b60405163bd85b03960e01b8152600481018290526000908190309063bd85b03990602401602060405180830381865afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f9190611e0e565b1192915050565b61071e610a8b565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b3360009081526004602052604090205460ff166107795760405163955c501b60e01b815260040160405180910390fd5b6107868585858585610d59565b5050505050565b610795610a8b565b61079f6000610eda565b565b600180546103b590611d8f565b604051338152826020820152604081208281555081815282337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31602084a3505050565b3360009081526004602052604090205460ff166108215760405163955c501b60e01b815260040160405180910390fd5b610786858585858560405180602001604052806000815250610f2c565b61078685858585856110d7565b610853610a8b565b6001600160a01b0381166108bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6108c681610eda565b50565b3360009081526004602052604090205460ff166108f95760405163955c501b60e01b815260040160405180910390fd5b61059883838361122a565b8060005260046000fd5b60006040518260041c8460601b17815261ffff600f841660041b1b81515416600f841660041b1c91505092915050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806109585750819003601f19909101908152919050565b6001600160641b038311156109a1576109a163467777f160e11b610904565b6001600160a01b0384166109be576109be622e076360e81b610904565b816000036109d6576109d663b562e8dd60e01b610904565b336109e681600087878787611308565b60006109f2868661090e565b8401905061ffff811115610a1057610a10630b6cdf5d60e41b610904565b610a1b868683611425565b604051858152846020820152866000847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0386163b15610a8357610a6f60008787878761145d565b610a8357610a83639c05499b60e01b610904565b505050505050565b6003546001600160a01b0316331461079f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b4565b6000838152600260205260409020610afe828483611e6d565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b610b2a85610436565b604051610b3791906118e3565b60405180910390a2505050565b6001600160a01b038616610b6257610b62633a954ecd60e21b610904565b838214610b7957610b7963512509d360e11b610904565b6001600160a01b0387163314610ba757610b9387336102d7565b610ba757610ba7632ce44b5f60e11b610904565b33610bb88189898989898989611542565b866001600160a01b0316886001600160a01b031614610cb15760005b85811015610caf576000878783818110610bf057610bf0611df8565b9050602002013590506000868684818110610c0d57610c0d611df8565b9050602002013590506001600160641b03821115610c3557610c3563467777f160e11b610904565b6000610c418c8461090e565b905080821115610c5b57610c5b63169b037b60e01b610904565b6000610c678c8561090e565b91839003918301905061ffff811115610c8a57610c8a630b6cdf5d60e41b610904565b610c958d8584611425565b610ca08c8583611425565b84600101945050505050610bd4565b505b604051604081528560200260600160208201528560408201528560200287606083013783866020026060830101528360200285876020026080840101378789837f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8760400260800185a4506001600160a01b0387163b15610d4f57610d3b8888888888888861171a565b610d4f57610d4f639c05499b60e01b610904565b5050505050505050565b6001600160a01b038516610d7757610d7763b817eee760e01b610904565b828114610d8e57610d8e63512509d360e11b610904565b6000339050610db3818760008888888860405180602001604052806000815250611542565b60005b84811015610e59576000868683818110610dd257610dd2611df8565b9050602002013590506000858584818110610def57610def611df8565b9050602002013590506001600160641b03821115610e1757610e1763467777f160e11b610904565b6000610e238a8461090e565b905080821115610e3d57610e3d63588569f760e01b610904565b819003610e4b8a8483611425565b836001019350505050610db6565b5060405160408152846020026060016020820152846040820152846020028660608301378285602002606083010152826020028486602002608084010137600087837f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8660400260800185a450604080516020810190915260009052610a83565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038616610f4957610f49622e076360e81b610904565b838214610f6057610f6063512509d360e11b610904565b33610f72816000898989898989611542565b60008060005b8781101561102b57888882818110610f9257610f92611df8565b905060200201359250868682818110610fad57610fad611df8565b9050602002013591506001600160641b03831115610fd557610fd563467777f160e11b610904565b81600003610fed57610fed63b562e8dd60e01b610904565b6000610ff98b8561090e565b8301905061ffff81111561101757611017630b6cdf5d60e41b610904565b6110228b8583611425565b50600101610f78565b5060405160408152876020026060016020820152876040820152876020028960608301378588602002606083010152856020028789602002608084010137896000857f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8960400260800185a4506001600160a01b0389163b156110cc576110b860008a8a8a8a8a8a61171a565b6110cc576110cc639c05499b60e01b610904565b505050505050505050565b6001600160641b038311156110f6576110f663467777f160e11b610904565b6001600160a01b03841661111457611114633a954ecd60e21b610904565b6001600160a01b03851633146111425761112e85336102d7565b61114257611142632ce44b5f60e11b610904565b33611151818787878787611308565b846001600160a01b0316866001600160a01b0316146111d8576000611176878661090e565b9050808411156111905761119063169b037b60e01b610904565b600061119c878761090e565b91859003918501905061ffff8111156111bf576111bf630b6cdf5d60e41b610904565b6111ca888784611425565b6111d5878783611425565b50505b6040518481528360208201528587837fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0385163b15610a8357610a6f868686868661145d565b6001600160641b038211156112495761124963467777f160e11b610904565b6001600160a01b0383166112675761126763b817eee760e01b610904565b600033905061128a81856000868660405180602001604052806000815250611308565b6000611296858561090e565b9050808311156112b0576112b063588569f760e01b610904565b8290036112be858583611425565b604051848152836020820152600086847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a450604080516020810190915260009052610786565b6001600160a01b0385166113a55760405163bd85b03960e01b815260048101849052600090309063bd85b03990602401602060405180830381865afa158015611355573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113799190611e0e565b8301905063ffffffff81111561139957611399634da7efd760e11b610904565b6113a384826117df565b505b6001600160a01b038416610a835760405163bd85b03960e01b815260048101849052600090309063bd85b03990602401602060405180830381865afa1580156113f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114169190611e0e565b83900390506105bf84826117df565b604051600483811c60609590951b9490941780825280549390941b60f01691821b61ffff90921b199092161760209091018190529055565b60405163f23a6e6160e01b81526000906001600160a01b0386169063f23a6e61906114949033908a90899089908990600401611f2d565b6020604051808303816000875af19250505080156114cf575060408051601f3d908101601f191682019092526114cc91810190611f67565b60015b611524573d8080156114fd576040519150601f19603f3d011682016040523d82523d6000602084013e611502565b606091505b50805160000361151c5761151c639c05499b60e01b610904565b805181602001fd5b6001600160e01b03191663f23a6e6160e01b14905095945050505050565b6001600160a01b03871661163d5760005b8481101561163b57600086868381811061156f5761156f611df8565b9050602002013590506000306001600160a01b031663bd85b039836040518263ffffffff1660e01b81526004016115a891815260200190565b602060405180830381865afa1580156115c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e99190611e0e565b90508585848181106115fd576115fd611df8565b905060200201358101905082600101925063ffffffff81111561162a5761162a634da7efd760e11b610904565b61163482826117df565b5050611553565b505b6001600160a01b038616610d4f5760005b848110156110cc57600086868381811061166a5761166a611df8565b9050602002013590506000306001600160a01b031663bd85b039836040518263ffffffff1660e01b81526004016116a391815260200190565b602060405180830381865afa1580156116c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e49190611e0e565b90508585848181106116f8576116f8611df8565b905060200201358103905082600101925061171382826117df565b505061164e565b60405163bc197c8160e01b81526000906001600160a01b0388169063bc197c81906117559033908c908b908b908b908b908b90600401611fb6565b6020604051808303816000875af1925050508015611790575060408051601f3d908101601f1916820190925261178d91810190611f67565b60015b6117be573d8080156114fd576040519150601f19603f3d011682016040523d82523d6000602084013e611502565b6001600160e01b03191663bc197c8160e01b1490505b979650505050505050565b604051600383901c600f60fc1b17808252805460059490941b60e01692831b63ffffffff90931b199093169190911760209091018190529055565b80356001600160a01b038116811461183157600080fd5b919050565b6000806040838503121561184957600080fd5b6118528361181a565b946020939093013593505050565b6001600160e01b0319811681146108c657600080fd5b60006020828403121561188857600080fd5b813561034f81611860565b60005b838110156118ae578181015183820152602001611896565b50506000910152565b600081518084526118cf816020860160208601611893565b601f01601f19169290920160200192915050565b60208152600061034f60208301846118b7565b60006020828403121561190857600080fd5b5035919050565b60008060006060848603121561192457600080fd5b61192d8461181a565b95602085013595506040909401359392505050565b60008060006040848603121561195757600080fd5b83359250602084013567ffffffffffffffff8082111561197657600080fd5b818601915086601f83011261198a57600080fd5b81358181111561199957600080fd5b8760208285010111156119ab57600080fd5b6020830194508093505050509250925092565b60008083601f8401126119d057600080fd5b50813567ffffffffffffffff8111156119e857600080fd5b6020830191508360208260051b8501011115611a0357600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611a3157600080fd5b813567ffffffffffffffff80821115611a4c57611a4c611a0a565b604051601f8301601f19908116603f01168101908282118183101715611a7457611a74611a0a565b81604052838152866020858801011115611a8d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060a0888a031215611ac857600080fd5b611ad18861181a565b9650611adf6020890161181a565b9550604088013567ffffffffffffffff80821115611afc57600080fd5b611b088b838c016119be565b909750955060608a0135915080821115611b2157600080fd5b611b2d8b838c016119be565b909550935060808a0135915080821115611b4657600080fd5b50611b538a828b01611a20565b91505092959891949750929550565b60008060008060408587031215611b7857600080fd5b843567ffffffffffffffff80821115611b9057600080fd5b611b9c888389016119be565b90965094506020870135915080821115611bb557600080fd5b50611bc2878288016119be565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015611c0657835183529284019291840191600101611bea565b50909695505050505050565b60008060408385031215611c2557600080fd5b611c2e8361181a565b915060208301358015158114611c4357600080fd5b809150509250929050565b600080600080600060608688031215611c6657600080fd5b611c6f8661181a565b9450602086013567ffffffffffffffff80821115611c8c57600080fd5b611c9889838a016119be565b90965094506040880135915080821115611cb157600080fd5b50611cbe888289016119be565b969995985093965092949392505050565b60008060408385031215611ce257600080fd5b611ceb8361181a565b9150611cf96020840161181a565b90509250929050565b600080600080600060a08688031215611d1a57600080fd5b611d238661181a565b9450611d316020870161181a565b93506040860135925060608601359150608086013567ffffffffffffffff811115611d5b57600080fd5b611d6788828901611a20565b9150509295509295909350565b600060208284031215611d8657600080fd5b61034f8261181a565b600181811c90821680611da357607f821691505b602082108103611dc357634e487b7160e01b600052602260045260246000fd5b50919050565b60008351611ddb818460208801611893565b835190830190611def818360208801611893565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611e2057600080fd5b5051919050565b601f82111561059857600081815260208120601f850160051c81016020861015611e4e5750805b601f850160051c820191505b81811015610a8357828155600101611e5a565b67ffffffffffffffff831115611e8557611e85611a0a565b611e9983611e938354611d8f565b83611e27565b6000601f841160018114611ecd5760008515611eb55750838201355b600019600387901b1c1916600186901b178355610786565b600083815260209020601f19861690835b82811015611efe5786850135825560209485019460019092019101611ede565b5086821015611f1b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906117d4908301846118b7565b600060208284031215611f7957600080fd5b815161034f81611860565b81835260006001600160fb1b03831115611f9d57600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0388811682528716602082015260a060408201819052600090611fe39083018789611f84565b8281036060840152611ff6818688611f84565b9050828103608084015261200a81856118b7565b9a995050505050505050505056fea26469706673582212206f776a35d25976bba29fd1eeee19803a3cb00376599fe09f070c390440536ecf64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101365760003560e01c80636b20c454116100b8578063bd85b0391161007c578063bd85b0391461027e578063d81d0a15146102b6578063e985e9c5146102c9578063f242432a146102ec578063f2fde38b146102ff578063f5298aca1461031257600080fd5b80636b20c4541461022d578063715018a6146102405780638da5cb5b1461024857806395d89b4114610263578063a22cb4651461026b57600080fd5b8063162094c4116100ff578063162094c4146101c15780632eb2c2d6146101d45780634e1273f4146101e75780634f558e79146102075780636af9c2051461021a57600080fd5b8062fdd58e1461013b57806301ffc9a71461016157806306fdde03146101845780630e89341c14610199578063156e29f6146101ac575b600080fd5b61014e610149366004611836565b610325565b6040519081526020015b60405180910390f35b61017461016f366004611876565b610356565b6040519015158152602001610158565b61018c6103a8565b60405161015891906118e3565b61018c6101a73660046118f6565b610436565b6101bf6101ba36600461190f565b61054d565b005b6101bf6101cf366004611942565b61059d565b6101bf6101e2366004611aad565b6105b0565b6101fa6101f5366004611b62565b6105c8565b6040516101589190611bce565b6101746102153660046118f6565b6106aa565b6101bf610228366004611c12565b610716565b6101bf61023b366004611c4e565b610749565b6101bf61078d565b6003546040516001600160a01b039091168152602001610158565b61018c6107a1565b6101bf610279366004611c12565b6107ae565b61014e61028c3660046118f6565b604051600382901c600f60fc1b17908190525463ffffffff60059290921b60e01691821b16901c90565b6101bf6102c4366004611c4e565b6107f1565b6101746102d7366004611ccf565b60408051928352602083019190915290205490565b6101bf6102fa366004611d02565b61083e565b6101bf61030d366004611d74565b61084b565b6101bf61032036600461190f565b6108c9565b60006001600160a01b038316610345576103456323d3ad8160e21b610904565b61034f838361090e565b9392505050565b60006301ffc9a760e01b6001600160e01b0319831614806103875750636cdb3d1360e11b6001600160e01b03198316145b806103a257506303a24d0760e21b6001600160e01b03198316145b92915050565b600080546103b590611d8f565b80601f01602080910402602001604051908101604052809291908181526020018280546103e190611d8f565b801561042e5780601f106104035761010080835404028352916020019161042e565b820191906000526020600020905b81548152906001019060200180831161041157829003601f168201915b505050505081565b60008181526002602052604081208054606092919061045490611d8f565b80601f016020809104026020016040519081016040528092919081815260200182805461048090611d8f565b80156104cd5780601f106104a2576101008083540402835291602001916104cd565b820191906000526020600020905b8154815290600101906020018083116104b057829003601f168201915b5050505050905060006104eb60408051602081019091526000815290565b905060008251116105435780516000036105145760405180602001604052806000815250610545565b8061051e8561093e565b60405160200161052f929190611dc9565b604051602081830303815290604052610545565b815b949350505050565b3360009081526004602052604090205460ff1661057d5760405163955c501b60e01b815260040160405180910390fd5b61059883838360405180602001604052806000815250610982565b505050565b6105a5610a8b565b610598838383610ae5565b6105bf87878787878787610b44565b50505050505050565b60608382146105e1576105e163512509d360e11b610904565b60008467ffffffffffffffff8111156105fc576105fc611a0a565b604051908082528060200260200182016040528015610625578160200160208202803683370190505b50905060005b858110156106a05761067b87878381811061064857610648611df8565b905060200201602081019061065d9190611d74565b86868481811061066f5761066f611df8565b90506020020135610325565b82828151811061068d5761068d611df8565b602090810291909101015260010161062b565b5095945050505050565b60405163bd85b03960e01b8152600481018290526000908190309063bd85b03990602401602060405180830381865afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f9190611e0e565b1192915050565b61071e610a8b565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b3360009081526004602052604090205460ff166107795760405163955c501b60e01b815260040160405180910390fd5b6107868585858585610d59565b5050505050565b610795610a8b565b61079f6000610eda565b565b600180546103b590611d8f565b604051338152826020820152604081208281555081815282337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31602084a3505050565b3360009081526004602052604090205460ff166108215760405163955c501b60e01b815260040160405180910390fd5b610786858585858560405180602001604052806000815250610f2c565b61078685858585856110d7565b610853610a8b565b6001600160a01b0381166108bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6108c681610eda565b50565b3360009081526004602052604090205460ff166108f95760405163955c501b60e01b815260040160405180910390fd5b61059883838361122a565b8060005260046000fd5b60006040518260041c8460601b17815261ffff600f841660041b1b81515416600f841660041b1c91505092915050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806109585750819003601f19909101908152919050565b6001600160641b038311156109a1576109a163467777f160e11b610904565b6001600160a01b0384166109be576109be622e076360e81b610904565b816000036109d6576109d663b562e8dd60e01b610904565b336109e681600087878787611308565b60006109f2868661090e565b8401905061ffff811115610a1057610a10630b6cdf5d60e41b610904565b610a1b868683611425565b604051858152846020820152866000847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0386163b15610a8357610a6f60008787878761145d565b610a8357610a83639c05499b60e01b610904565b505050505050565b6003546001600160a01b0316331461079f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b4565b6000838152600260205260409020610afe828483611e6d565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b610b2a85610436565b604051610b3791906118e3565b60405180910390a2505050565b6001600160a01b038616610b6257610b62633a954ecd60e21b610904565b838214610b7957610b7963512509d360e11b610904565b6001600160a01b0387163314610ba757610b9387336102d7565b610ba757610ba7632ce44b5f60e11b610904565b33610bb88189898989898989611542565b866001600160a01b0316886001600160a01b031614610cb15760005b85811015610caf576000878783818110610bf057610bf0611df8565b9050602002013590506000868684818110610c0d57610c0d611df8565b9050602002013590506001600160641b03821115610c3557610c3563467777f160e11b610904565b6000610c418c8461090e565b905080821115610c5b57610c5b63169b037b60e01b610904565b6000610c678c8561090e565b91839003918301905061ffff811115610c8a57610c8a630b6cdf5d60e41b610904565b610c958d8584611425565b610ca08c8583611425565b84600101945050505050610bd4565b505b604051604081528560200260600160208201528560408201528560200287606083013783866020026060830101528360200285876020026080840101378789837f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8760400260800185a4506001600160a01b0387163b15610d4f57610d3b8888888888888861171a565b610d4f57610d4f639c05499b60e01b610904565b5050505050505050565b6001600160a01b038516610d7757610d7763b817eee760e01b610904565b828114610d8e57610d8e63512509d360e11b610904565b6000339050610db3818760008888888860405180602001604052806000815250611542565b60005b84811015610e59576000868683818110610dd257610dd2611df8565b9050602002013590506000858584818110610def57610def611df8565b9050602002013590506001600160641b03821115610e1757610e1763467777f160e11b610904565b6000610e238a8461090e565b905080821115610e3d57610e3d63588569f760e01b610904565b819003610e4b8a8483611425565b836001019350505050610db6565b5060405160408152846020026060016020820152846040820152846020028660608301378285602002606083010152826020028486602002608084010137600087837f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8660400260800185a450604080516020810190915260009052610a83565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038616610f4957610f49622e076360e81b610904565b838214610f6057610f6063512509d360e11b610904565b33610f72816000898989898989611542565b60008060005b8781101561102b57888882818110610f9257610f92611df8565b905060200201359250868682818110610fad57610fad611df8565b9050602002013591506001600160641b03831115610fd557610fd563467777f160e11b610904565b81600003610fed57610fed63b562e8dd60e01b610904565b6000610ff98b8561090e565b8301905061ffff81111561101757611017630b6cdf5d60e41b610904565b6110228b8583611425565b50600101610f78565b5060405160408152876020026060016020820152876040820152876020028960608301378588602002606083010152856020028789602002608084010137896000857f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8960400260800185a4506001600160a01b0389163b156110cc576110b860008a8a8a8a8a8a61171a565b6110cc576110cc639c05499b60e01b610904565b505050505050505050565b6001600160641b038311156110f6576110f663467777f160e11b610904565b6001600160a01b03841661111457611114633a954ecd60e21b610904565b6001600160a01b03851633146111425761112e85336102d7565b61114257611142632ce44b5f60e11b610904565b33611151818787878787611308565b846001600160a01b0316866001600160a01b0316146111d8576000611176878661090e565b9050808411156111905761119063169b037b60e01b610904565b600061119c878761090e565b91859003918501905061ffff8111156111bf576111bf630b6cdf5d60e41b610904565b6111ca888784611425565b6111d5878783611425565b50505b6040518481528360208201528587837fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0385163b15610a8357610a6f868686868661145d565b6001600160641b038211156112495761124963467777f160e11b610904565b6001600160a01b0383166112675761126763b817eee760e01b610904565b600033905061128a81856000868660405180602001604052806000815250611308565b6000611296858561090e565b9050808311156112b0576112b063588569f760e01b610904565b8290036112be858583611425565b604051848152836020820152600086847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a450604080516020810190915260009052610786565b6001600160a01b0385166113a55760405163bd85b03960e01b815260048101849052600090309063bd85b03990602401602060405180830381865afa158015611355573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113799190611e0e565b8301905063ffffffff81111561139957611399634da7efd760e11b610904565b6113a384826117df565b505b6001600160a01b038416610a835760405163bd85b03960e01b815260048101849052600090309063bd85b03990602401602060405180830381865afa1580156113f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114169190611e0e565b83900390506105bf84826117df565b604051600483811c60609590951b9490941780825280549390941b60f01691821b61ffff90921b199092161760209091018190529055565b60405163f23a6e6160e01b81526000906001600160a01b0386169063f23a6e61906114949033908a90899089908990600401611f2d565b6020604051808303816000875af19250505080156114cf575060408051601f3d908101601f191682019092526114cc91810190611f67565b60015b611524573d8080156114fd576040519150601f19603f3d011682016040523d82523d6000602084013e611502565b606091505b50805160000361151c5761151c639c05499b60e01b610904565b805181602001fd5b6001600160e01b03191663f23a6e6160e01b14905095945050505050565b6001600160a01b03871661163d5760005b8481101561163b57600086868381811061156f5761156f611df8565b9050602002013590506000306001600160a01b031663bd85b039836040518263ffffffff1660e01b81526004016115a891815260200190565b602060405180830381865afa1580156115c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e99190611e0e565b90508585848181106115fd576115fd611df8565b905060200201358101905082600101925063ffffffff81111561162a5761162a634da7efd760e11b610904565b61163482826117df565b5050611553565b505b6001600160a01b038616610d4f5760005b848110156110cc57600086868381811061166a5761166a611df8565b9050602002013590506000306001600160a01b031663bd85b039836040518263ffffffff1660e01b81526004016116a391815260200190565b602060405180830381865afa1580156116c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e49190611e0e565b90508585848181106116f8576116f8611df8565b905060200201358103905082600101925061171382826117df565b505061164e565b60405163bc197c8160e01b81526000906001600160a01b0388169063bc197c81906117559033908c908b908b908b908b908b90600401611fb6565b6020604051808303816000875af1925050508015611790575060408051601f3d908101601f1916820190925261178d91810190611f67565b60015b6117be573d8080156114fd576040519150601f19603f3d011682016040523d82523d6000602084013e611502565b6001600160e01b03191663bc197c8160e01b1490505b979650505050505050565b604051600383901c600f60fc1b17808252805460059490941b60e01692831b63ffffffff90931b199093169190911760209091018190529055565b80356001600160a01b038116811461183157600080fd5b919050565b6000806040838503121561184957600080fd5b6118528361181a565b946020939093013593505050565b6001600160e01b0319811681146108c657600080fd5b60006020828403121561188857600080fd5b813561034f81611860565b60005b838110156118ae578181015183820152602001611896565b50506000910152565b600081518084526118cf816020860160208601611893565b601f01601f19169290920160200192915050565b60208152600061034f60208301846118b7565b60006020828403121561190857600080fd5b5035919050565b60008060006060848603121561192457600080fd5b61192d8461181a565b95602085013595506040909401359392505050565b60008060006040848603121561195757600080fd5b83359250602084013567ffffffffffffffff8082111561197657600080fd5b818601915086601f83011261198a57600080fd5b81358181111561199957600080fd5b8760208285010111156119ab57600080fd5b6020830194508093505050509250925092565b60008083601f8401126119d057600080fd5b50813567ffffffffffffffff8111156119e857600080fd5b6020830191508360208260051b8501011115611a0357600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611a3157600080fd5b813567ffffffffffffffff80821115611a4c57611a4c611a0a565b604051601f8301601f19908116603f01168101908282118183101715611a7457611a74611a0a565b81604052838152866020858801011115611a8d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060a0888a031215611ac857600080fd5b611ad18861181a565b9650611adf6020890161181a565b9550604088013567ffffffffffffffff80821115611afc57600080fd5b611b088b838c016119be565b909750955060608a0135915080821115611b2157600080fd5b611b2d8b838c016119be565b909550935060808a0135915080821115611b4657600080fd5b50611b538a828b01611a20565b91505092959891949750929550565b60008060008060408587031215611b7857600080fd5b843567ffffffffffffffff80821115611b9057600080fd5b611b9c888389016119be565b90965094506020870135915080821115611bb557600080fd5b50611bc2878288016119be565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015611c0657835183529284019291840191600101611bea565b50909695505050505050565b60008060408385031215611c2557600080fd5b611c2e8361181a565b915060208301358015158114611c4357600080fd5b809150509250929050565b600080600080600060608688031215611c6657600080fd5b611c6f8661181a565b9450602086013567ffffffffffffffff80821115611c8c57600080fd5b611c9889838a016119be565b90965094506040880135915080821115611cb157600080fd5b50611cbe888289016119be565b969995985093965092949392505050565b60008060408385031215611ce257600080fd5b611ceb8361181a565b9150611cf96020840161181a565b90509250929050565b600080600080600060a08688031215611d1a57600080fd5b611d238661181a565b9450611d316020870161181a565b93506040860135925060608601359150608086013567ffffffffffffffff811115611d5b57600080fd5b611d6788828901611a20565b9150509295509295909350565b600060208284031215611d8657600080fd5b61034f8261181a565b600181811c90821680611da357607f821691505b602082108103611dc357634e487b7160e01b600052602260045260246000fd5b50919050565b60008351611ddb818460208801611893565b835190830190611def818360208801611893565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611e2057600080fd5b5051919050565b601f82111561059857600081815260208120601f850160051c81016020861015611e4e5750805b601f850160051c820191505b81811015610a8357828155600101611e5a565b67ffffffffffffffff831115611e8557611e85611a0a565b611e9983611e938354611d8f565b83611e27565b6000601f841160018114611ecd5760008515611eb55750838201355b600019600387901b1c1916600186901b178355610786565b600083815260209020601f19861690835b82811015611efe5786850135825560209485019460019092019101611ede565b5086821015611f1b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906117d4908301846118b7565b600060208284031215611f7957600080fd5b815161034f81611860565b81835260006001600160fb1b03831115611f9d57600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0388811682528716602082015260a060408201819052600090611fe39083018789611f84565b8281036060840152611ff6818688611f84565b9050828103608084015261200a81856118b7565b9a995050505050505050505056fea26469706673582212206f776a35d25976bba29fd1eeee19803a3cb00376599fe09f070c390440536ecf64736f6c63430008110033
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.