ERC-1155
NFT
Overview
Max Total Supply
360 PIPPI
Holders
176
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:
SuperCryptoMan
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.8.6; import "../../common/RaribleUserERC1155.sol"; interface iSuperCyrptoMan { function mint( uint256 id, uint256 amount, string memory metadataCidStartsWithSlashIPFSSlash, // such as "/ipfs/[IPFS cid]" address payable[] memory _royaltyAddresses, uint256[] memory _royaltiesWithTwoDecimals ) external; function mintBatch( uint256[] memory ids, uint256[] memory amounts, string[] calldata metadataCidListStartsWithSlashIPFSSlash, address payable[] memory _royaltyAddresses, uint256[] memory _royaltiesWithTwoDecimals ) external; function mintForV1Holder( address to, uint256 id, uint256 amount ) external; function setMetadataForReservedTokens( string[45] memory metadataList ) external; } contract SuperCryptoMan is iSuperCyrptoMan, RaribleUserERC1155 { bytes32 public CONVERTER_ROLE = keccak256("CONVERTER_ROLE"); uint256 private constant reservedTokenIdRange = 44; bool private setReservedTokenMeatadata; constructor( address creator, address signer, string memory _name, string memory _symbol, string memory contractURI ) RaribleUserERC1155( creator, signer, _name, _symbol, contractURI, new address payable[](0), new uint256[](0) ) {} function mint( uint256 id, uint8 v, bytes32 r, bytes32 s, Fee[] memory fees, uint256 amount, string memory metadataCidStartsWithSlashIPFSSlash ) public override { require(_isNotReserved(id), "reserved token"); super.mint(id, v, r, s, fees, amount, metadataCidStartsWithSlashIPFSSlash); } function mint( uint256 id, uint256 amount, string memory metadataCidStartsWithSlashIPFSSlash, // such as "/ipfs/[IPFS cid]" address payable[] memory _royaltyAddresses, uint256[] memory _royaltiesWithTwoDecimals ) public override onlyOwner { require(_isNotReserved(id), "reserved token"); require(!exists(id), "already minted"); _setMetadataCid(id, metadataCidStartsWithSlashIPFSSlash); _setRoyaltiesOf(id, _royaltyAddresses, _royaltiesWithTwoDecimals); _mint(msg.sender, id, amount, ""); } function mintBatch( uint256[] memory ids, uint256[] memory amounts, string[] calldata metadataCidListStartsWithSlashIPFSSlash, address payable[] memory _royaltyAddresses, uint256[] memory _royaltiesWithTwoDecimals ) public override onlyOwner { require(ids.length == metadataCidListStartsWithSlashIPFSSlash.length, "invalid length"); for (uint256 i = 0; i < metadataCidListStartsWithSlashIPFSSlash.length; i++) { require(_isNotReserved(ids[i]), "reserved token"); require(!exists(ids[i]), "already minted"); _setMetadataCid(ids[i], metadataCidListStartsWithSlashIPFSSlash[i]); _setRoyaltiesOf(ids[i], _royaltyAddresses, _royaltiesWithTwoDecimals); } _mintBatch(msg.sender, ids, amounts, ""); } function mintForV1Holder( address to, uint256 id, uint256 amount ) external override onlyRole(CONVERTER_ROLE) { require(!_isNotReserved(id), "non-reserved token"); _mint(to, id, amount, ""); } function setMetadataForReservedTokens( string[45] memory metadataList ) external override onlyOwner { require(!setReservedTokenMeatadata, "already set"); setReservedTokenMeatadata = true; for (uint256 i = 0; i < metadataList.length; i++) { _setMetadataCid(i, metadataList[i]); } } function _isNotReserved(uint256 id) internal pure returns (bool) { return reservedTokenIdRange < id; } }
// SPDX-License-Identifier: MIT // this is copied from RaribleUserToken // https://rinkeby.etherscan.io/address/0xb7622dc2f054d46fcd4bb4d52ac6db3cd8464a6c#code // modified by TART-tokyo pragma solidity =0.8.6; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./RaribleERC1155.sol"; contract RaribleUserERC1155 is RaribleERC1155 { struct Fee { address payable recipient; uint256 value; } string public tokenURIPrefix = "ipfs:/"; mapping(uint256 => string) private tokenMetadataCidList; constructor( address creator, address signer, string memory _name, string memory _symbol, string memory contractURI, address payable[] memory commonRoyaltyAddresses, uint256[] memory commonRoyalties ) RaribleERC1155( creator, signer, _name, _symbol, "", contractURI, commonRoyaltyAddresses, commonRoyalties ) {} function mint( uint256 id, uint8 v, bytes32 r, bytes32 s, Fee[] memory fees, uint256 amount, string memory metadataCidStartsWithSlashIPFSSlash ) public virtual onlyOwner { require(!exists(id), "already minted"); _setMetadataCid(id, metadataCidStartsWithSlashIPFSSlash); address payable[] memory royaltyAddresses = new address payable[](fees.length); uint256[] memory royalties = new uint256[](fees.length); for (uint256 i = 0; i < fees.length; i++) { royaltyAddresses[i] = fees[i].recipient; royalties[i] = fees[i].value; } _setRoyaltiesOf(id, royaltyAddresses, royalties); _mint(msg.sender, id, amount, ""); } function exists(uint256 id) public view returns (bool) { return keccak256(abi.encodePacked(tokenMetadataCidList[id])) != keccak256(abi.encodePacked("")); } function uri(uint256 id) public view override returns (string memory) { require(exists(id), "undefined token"); return string(abi.encodePacked(tokenURIPrefix, tokenMetadataCidList[id])); } function setTokenURIPrefix(string memory newPrefix) external onlyOwner { tokenURIPrefix = newPrefix; } function setCommonRoyalty( address payable[] memory commonRoyaltyAddresses, uint256[] memory commonRoyaltiesWithTwoDecimals ) external onlyOwner { _setCommonRoyalties(commonRoyaltyAddresses, commonRoyaltiesWithTwoDecimals); } function setRoyaltyOf( uint256 id, address payable[] memory _royaltyAddresses, uint256[] memory _royaltiesWithTwoDecimals ) external onlyOwner { _setRoyaltiesOf(id, _royaltyAddresses, _royaltiesWithTwoDecimals); } function setBatchRoyaltyOf( uint256[] memory ids, address payable[] memory _royaltyAddresses, uint256[] memory _royaltiesWithTwoDecimals ) external onlyOwner { for (uint256 i = 0; i < ids.length; i++) { _setRoyaltiesOf(ids[i], _royaltyAddresses, _royaltiesWithTwoDecimals); } } function _setMetadataCid(uint256 id, string memory tokenMetadataCid) internal { require( keccak256(abi.encodePacked(tokenMetadataCid)) != keccak256(abi.encodePacked("")), "empty cid" ); tokenMetadataCidList[id] = tokenMetadataCid; } function supportsInterface(bytes4 interfaceId) public view virtual override(RaribleERC1155) returns (bool) { return interfaceId == bytes4(keccak256('MINT_WITH_ADDRESS')) || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // this is copied from RaribleUserToken // https://rinkeby.etherscan.io/address/0xb7622dc2f054d46fcd4bb4d52ac6db3cd8464a6c#code // modified by TART-tokyo pragma solidity =0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "../extensions/HasContractURI.sol"; import "../extensions/HasSecondarySaleFees.sol"; import "../roles/SignerRole.sol"; contract RaribleERC1155 is Ownable, ERC1155Burnable, HasContractURI, HasSecondarySaleFees, SignerRole { event CreateERC1155_v1(address indexed creator, string name, string symbol); string public name; string public symbol; constructor( address creator, address signer, string memory _name, string memory _symbol, string memory tokenURI, string memory contractURI, address payable[] memory commonRoyaltyAddresses, uint256[] memory commonRoyaltiesWithTwoDecimals ) ERC1155(tokenURI) HasContractURI(contractURI) SignerRole() HasSecondarySaleFees(commonRoyaltyAddresses, commonRoyaltiesWithTwoDecimals) { name = _name; symbol = _symbol; _setupRole(DEFAULT_ADMIN_ROLE, creator); _setupRole(SIGNER_ROLE, creator); _setupRole(SIGNER_ROLE, signer); renounceRole(SIGNER_ROLE, msg.sender); emit CreateERC1155_v1(creator, name, symbol); } function setContractURI(string memory contractURI) external onlyOwner { _setContractURI(contractURI); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC1155, HasContractURI, HasSecondarySaleFees) returns (bool) { return AccessControlEnumerable.supportsInterface(interfaceId) || ERC1155.supportsInterface(interfaceId) || HasContractURI.supportsInterface(interfaceId) || HasSecondarySaleFees.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn(address account, uint256 id, uint256 value) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // this is copied from MintableOwnableToken // https://etherscan.io/address/0x987a4d3edbe363bc351771bb8abdf2a332a19131#code // modified by TART-tokyo pragma solidity =0.8.6; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; contract HasContractURI is ERC165 { string public contractURI; /* * bytes4(keccak256('contractURI()')) == 0xe8a3d485 */ bytes4 private constant _INTERFACE_ID_CONTRACT_URI = 0xe8a3d485; constructor(string memory _contractURI) { contractURI = _contractURI; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) { return interfaceId == _INTERFACE_ID_CONTRACT_URI || super.supportsInterface(interfaceId); } function _setContractURI(string memory _contractURI) internal { contractURI = _contractURI; } }
// SPDX-License-Identifier: MIT // this is copied from chocomintapp/chocofactory // https://github.com/chocomintapp/chocofactory/blob/main/packages/contracts/contracts/extentions/HasSecondarySaleFees.sol // modified by TART-tokyo pragma solidity =0.8.6; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; interface IHasSecondarySaleFees { function getFeeBps(uint256 id) external view returns (uint256[] memory); function getFeeRecipients(uint256 id) external view returns (address payable[] memory); } contract HasSecondarySaleFees is IERC165, IHasSecondarySaleFees { event ChangeCommonRoyalty( address payable[] royaltyAddresses, uint256[] royaltiesWithTwoDecimals ); event ChangeRoyalty( uint256 id, address payable[] royaltyAddresses, uint256[] royaltiesWithTwoDecimals ); struct RoyaltyInfo { bool isPresent; address payable[] royaltyAddresses; uint256[] royaltiesWithTwoDecimals; } mapping(bytes32 => RoyaltyInfo) royaltyInfoMap; mapping(uint256 => bytes32) tokenRoyaltyMap; address payable[] public commonRoyaltyAddresses; uint256[] public commonRoyaltiesWithTwoDecimals; constructor( address payable[] memory _commonRoyaltyAddresses, uint256[] memory _commonRoyaltiesWithTwoDecimals ) { _setCommonRoyalties(_commonRoyaltyAddresses, _commonRoyaltiesWithTwoDecimals); } function _setRoyaltiesOf( uint256 _tokenId, address payable[] memory _royaltyAddresses, uint256[] memory _royaltiesWithTwoDecimals ) internal { require(_royaltyAddresses.length == _royaltiesWithTwoDecimals.length, "input length must be same"); bytes32 key = 0x0; for (uint256 i = 0; i < _royaltyAddresses.length; i++) { require(_royaltyAddresses[i] != address(0), "Must not be zero-address"); key = keccak256(abi.encodePacked(key, _royaltyAddresses[i], _royaltiesWithTwoDecimals[i])); } tokenRoyaltyMap[_tokenId] = key; emit ChangeRoyalty(_tokenId, _royaltyAddresses, _royaltiesWithTwoDecimals); if (royaltyInfoMap[key].isPresent) { return; } royaltyInfoMap[key] = RoyaltyInfo( true, _royaltyAddresses, _royaltiesWithTwoDecimals ); } function _setCommonRoyalties( address payable[] memory _commonRoyaltyAddresses, uint256[] memory _commonRoyaltiesWithTwoDecimals ) internal { require(_commonRoyaltyAddresses.length == _commonRoyaltiesWithTwoDecimals.length, "input length must be same"); for (uint256 i = 0; i < _commonRoyaltyAddresses.length; i++) { require(_commonRoyaltyAddresses[i] != address(0), "Must not be zero-address"); } commonRoyaltyAddresses = _commonRoyaltyAddresses; commonRoyaltiesWithTwoDecimals = _commonRoyaltiesWithTwoDecimals; emit ChangeCommonRoyalty(_commonRoyaltyAddresses, _commonRoyaltiesWithTwoDecimals); } function getFeeRecipients(uint256 _tokenId) public view override returns (address payable[] memory) { RoyaltyInfo memory royaltyInfo = royaltyInfoMap[tokenRoyaltyMap[_tokenId]]; if (!royaltyInfo.isPresent) { return commonRoyaltyAddresses; } uint256 length = commonRoyaltyAddresses.length + royaltyInfo.royaltyAddresses.length; address payable[] memory recipients = new address payable[](length); for (uint256 i = 0; i < commonRoyaltyAddresses.length; i++) { recipients[i] = commonRoyaltyAddresses[i]; } for (uint256 i = 0; i < royaltyInfo.royaltyAddresses.length; i++) { recipients[i + commonRoyaltyAddresses.length] = royaltyInfo.royaltyAddresses[i]; } return recipients; } function getFeeBps(uint256 _tokenId) public view override returns (uint256[] memory) { RoyaltyInfo memory royaltyInfo = royaltyInfoMap[tokenRoyaltyMap[_tokenId]]; if (!royaltyInfo.isPresent) { return commonRoyaltiesWithTwoDecimals; } uint256 length = commonRoyaltiesWithTwoDecimals.length + royaltyInfo.royaltiesWithTwoDecimals.length; uint256[] memory fees = new uint256[](length); for (uint256 i = 0; i < commonRoyaltiesWithTwoDecimals.length; i++) { fees[i] = commonRoyaltiesWithTwoDecimals[i]; } for (uint256 i = 0; i < royaltyInfo.royaltiesWithTwoDecimals.length; i++) { fees[i + commonRoyaltyAddresses.length] = royaltyInfo.royaltiesWithTwoDecimals[i]; } return fees; } function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165) returns (bool) { return interfaceId == type(IHasSecondarySaleFees).interfaceId; } }
// SPDX-License-Identifier: MIT // this is copied from MintableOwnableToken // https://etherscan.io/address/0x987a4d3edbe363bc351771bb8abdf2a332a19131#code // modified by TART-tokyo pragma solidity =0.8.6; import "../interface/iSignerRole.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; contract SignerRole is iSignerRole, AccessControlEnumerable { bytes32 public constant SIGNER_ROLE = keccak256("SIGNER_ROLE"); constructor() { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(SIGNER_ROLE, msg.sender); } modifier onlySigner() { require(isSigner(msg.sender), "msg.sender is not a signer"); _; } function isSigner(address account) public override view returns (bool) { return hasRole(SIGNER_ROLE, account); } }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.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 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping (uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping (address => mapping(address => 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) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); 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 override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); _balances[id][from] = fromBalance - amount; _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); _balances[id][from] = fromBalance - amount; _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, 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 amounts 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 `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn(address account, uint256 id, uint256 amount) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); _balances[id][account] = accountBalance - amount; emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); _balances[id][account] = accountBalance - amount; } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * 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 _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { } function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @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 IERC1155 is IERC165 { /** * @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 be 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ 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. 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. 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 pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 // this is copied from MintableOwnableToken // https://etherscan.io/address/0x987a4d3edbe363bc351771bb8abdf2a332a19131#code // modified by TART-tokyo pragma solidity =0.8.6; interface iSignerRole { function isSigner(address account) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable { function getRoleMember(bytes32 role, uint256 index) external view returns (address); function getRoleMemberCount(bytes32 role) external view returns (uint256); } /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping (bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping (address => bool) members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if(!hasRole(role, account)) { revert(string(abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ))); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { 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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"contractURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable[]","name":"royaltyAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"ChangeCommonRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address payable[]","name":"royaltyAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"ChangeRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"CreateERC1155_v1","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"CONVERTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commonRoyaltiesWithTwoDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commonRoyaltyAddresses","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"metadataCidStartsWithSlashIPFSSlash","type":"string"},{"internalType":"address payable[]","name":"_royaltyAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"components":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct RaribleUserERC1155.Fee[]","name":"fees","type":"tuple[]"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"metadataCidStartsWithSlashIPFSSlash","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"string[]","name":"metadataCidListStartsWithSlashIPFSSlash","type":"string[]"},{"internalType":"address payable[]","name":"_royaltyAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintForV1Holder","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address payable[]","name":"_royaltyAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"setBatchRoyaltyOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"commonRoyaltyAddresses","type":"address[]"},{"internalType":"uint256[]","name":"commonRoyaltiesWithTwoDecimals","type":"uint256[]"}],"name":"setCommonRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[45]","name":"metadataList","type":"string[45]"}],"name":"setMetadataForReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address payable[]","name":"_royaltyAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"setRoyaltyOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newPrefix","type":"string"}],"name":"setTokenURIPrefix","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":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"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
60c06040526006608081905265697066733a2f60d01b60a09081526200002991600d9190620007bb565b507f1cf336fddcc7dc48127faf7a5b80ee54fce73ef647eecd31c24bb6cce3ac3eef600f553480156200005b57600080fd5b5060405162005047380380620050478339810160408190526200007e91620009ca565b84848484846000604051908082528060200260200182016040528015620000af578160200160208202803683370190505b506040805160008082526020820190925290508686868660405180602001604052806000815250878787818184866000620000ef6200027f60201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001448162000283565b5080516200015a906004906020840190620007bb565b5062000169905082826200029c565b5062000179905060003362000402565b62000194600080516020620050278339815191523362000402565b8551620001a990600b906020890190620007bb565b508451620001bf90600c906020880190620007bb565b50620001cd60008962000402565b620001e8600080516020620050278339815191528962000402565b62000203600080516020620050278339815191528862000402565b6200021e600080516020620050278339815191523362000445565b876001600160a01b03167f658fd9a983a35f4a0bb697abb2c6971d688010d8bc264928a164ae391b87472c600b600c6040516200025d92919062000bb2565b60405180910390a2505050505050505050505050505050505050505062000cb1565b3390565b805162000298906003906020840190620007bb565b5050565b8051825114620002f35760405162461bcd60e51b815260206004820152601960248201527f696e707574206c656e677468206d7573742062652073616d650000000000000060448201526064015b60405180910390fd5b60005b8251811015620003965760006001600160a01b031683828151811062000320576200032062000c85565b60200260200101516001600160a01b03161415620003815760405162461bcd60e51b815260206004820152601860248201527f4d757374206e6f74206265207a65726f2d6164647265737300000000000000006044820152606401620002ea565b806200038d8162000c3b565b915050620002f6565b508151620003ac9060079060208501906200084a565b508051620003c2906008906020840190620008a2565b507f5d2bfbaa8b7f0a1c8af86340416cb6051131510959c7fd9ab84a1c75fed9464f8282604051620003f692919062000b2a565b60405180910390a15050565b6200041982826200048360201b62001b5e1760201c565b6000828152600a602090815260409091206200044091839062001b686200048f821b17901c565b505050565b6200045c8282620004af60201b62001b7d1760201c565b6000828152600a602090815260409091206200044091839062001bf76200052d821b17901c565b62000298828262000544565b6000620004a6836001600160a01b038416620005e8565b90505b92915050565b6001600160a01b0381163314620005215760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401620002ea565b6200029882826200063a565b6000620004a6836001600160a01b038416620006be565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16620002985760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620005a43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546200063157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004a9565b506000620004a9565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1615620002985760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015620007b0576000620006e560018362000be4565b8554909150600090620006fb9060019062000be4565b9050600086600001828154811062000717576200071762000c85565b90600052602060002001549050808760000184815481106200073d576200073d62000c85565b60009182526020808320909101929092558281526001890190915260409020849055865487908062000773576200077362000c6f565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050620004a9565b6000915050620004a9565b828054620007c99062000bfe565b90600052602060002090601f016020900481019282620007ed576000855562000838565b82601f106200080857805160ff191683800117855562000838565b8280016001018555821562000838579182015b82811115620008385782518255916020019190600101906200081b565b5062000846929150620008df565b5090565b82805482825590600052602060002090810192821562000838579160200282015b828111156200083857825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200086b565b828054828255906000526020600020908101928215620008385791602002820182811115620008385782518255916020019190600101906200081b565b5b80821115620008465760008155600101620008e0565b80516001600160a01b03811681146200090e57600080fd5b919050565b600082601f8301126200092557600080fd5b81516001600160401b038082111562000942576200094262000c9b565b604051601f8301601f19908116603f011681019082821181831017156200096d576200096d62000c9b565b816040528381526020925086838588010111156200098a57600080fd5b600091505b83821015620009ae57858201830151818301840152908201906200098f565b83821115620009c05760008385830101525b9695505050505050565b600080600080600060a08688031215620009e357600080fd5b620009ee86620008f6565b9450620009fe60208701620008f6565b60408701519094506001600160401b038082111562000a1c57600080fd5b62000a2a89838a0162000913565b9450606088015191508082111562000a4157600080fd5b62000a4f89838a0162000913565b9350608088015191508082111562000a6657600080fd5b5062000a758882890162000913565b9150509295509295909350565b8054600090600181811c908083168062000a9d57607f831692505b602080841082141562000ac057634e487b7160e01b600052602260045260246000fd5b8388526020880182801562000ade576001811462000af05762000b1d565b60ff1987168252828201975062000b1d565b60008981526020902060005b8781101562000b175781548482015290860190840162000afc565b83019850505b5050505050505092915050565b604080825283519082018190526000906020906060840190828701845b8281101562000b6e5781516001600160a01b03168452928401929084019060010162000b47565b5050508381038285015284518082528583019183019060005b8181101562000ba55783518352928401929184019160010162000b87565b5090979650505050505050565b60408152600062000bc7604083018562000a82565b828103602084015262000bdb818562000a82565b95945050505050565b60008282101562000bf95762000bf962000c59565b500390565b600181811c9082168062000c1357607f821691505b6020821081141562000c3557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000c525762000c5262000c59565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6143668062000cc16000396000f3fe608060405234801561001057600080fd5b50600436106102685760003560e01c80639010d07c11610151578063c0ac9983116100c3578063d547741f11610087578063d547741f1461056d578063e8a3d48514610580578063e985e9c514610588578063f242432a146105c4578063f2fde38b146105d7578063f5298aca146105ea57600080fd5b8063c0ac998314610519578063c3a983b214610521578063c6bf326214610534578063ca15c87314610547578063ca1ef6e21461055a57600080fd5b80639928ebc7116101155780639928ebc71461049157806399e0dd7c146104a4578063a1ebf35d146104b7578063a217fddf146104de578063a22cb465146104e6578063b9c4d9fb146104f957600080fd5b80639010d07c1461043d57806391d1485414610450578063938e3d7b146104635780639558579b1461047657806395d89b411461048957600080fd5b80632f2ff15d116101ea5780636b20c454116101ae5780636b20c454146103c4578063715018a6146103d75780637a5e1e15146103df5780637df73e27146103f25780638da5cb5b146104055780638de918901461042a57600080fd5b80632f2ff15d1461036557806336568abe1461037857806340ff57b71461038b5780634e1273f41461039e5780634f558e79146103b157600080fd5b80631196a0c4116102315780631196a0c4146102fe57806313776a8d146103115780631559d3391461031a578063248a9ca31461032f5780632eb2c2d61461035257600080fd5b8062fdd58e1461026d57806301ffc9a71461029357806306fdde03146102b65780630e89341c146102cb5780630ebd4c7f146102de575b600080fd5b61028061027b366004613425565b6105fd565b6040519081526020015b60405180910390f35b6102a66102a13660046137d9565b610699565b604051901515815260200161028a565b6102be6106be565b60405161028a9190613d4a565b6102be6102d9366004613779565b61074c565b6102f16102ec366004613779565b6107d1565b60405161028a9190613d24565b61028061030c366004613779565b610a4b565b610280600f5481565b61032d61032836600461384f565b610a6c565b005b61028061033d366004613779565b60009081526009602052604090206001015490565b61032d610360366004613268565b610aa6565b61032d610373366004613792565b610d13565b61032d610386366004613792565b610d35565b61032d610399366004613882565b610d57565b6102f16103ac366004613486565b610e04565b6102a66103bf366004613779565b610f2d565b61032d6103d236600461337d565b610f7b565b61032d610fbe565b61032d6103ed366004613451565b611032565b6102a6610400366004613212565b6110ac565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161028a565b61032d6104383660046135a4565b6110d8565b61041261044b3660046137b7565b611192565b6102a661045e366004613792565b6111b1565b61032d610471366004613813565b6111dc565b61032d6104843660046136a4565b611212565b6102be6113d3565b61032d61049f36600461364a565b6113e0565b61032d6104b2366004613813565b61143d565b6102807fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b610280600081565b61032d6104f43660046133f2565b61147a565b61050c610507366004613779565b611551565b60405161028a9190613ce3565b6102be6117f8565b61041261052f366004613779565b611805565b61032d610542366004613910565b61182f565b610280610555366004613779565b61186d565b61032d610568366004613558565b611884565b61032d61057b366004613792565b6118b8565b6102be6118c2565b6102a661059636600461322f565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b61032d6105d2366004613315565b6118cf565b61032d6105e5366004613212565b611a31565b61032d6105f8366004613451565b611b1b565b60006001600160a01b03831661066e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982166371b921f960e11b1480610693575061069382611c0c565b600b80546106cb90614141565b80601f01602080910402602001604051908101604052809291908181526020018280546106f790614141565b80156107445780601f1061071957610100808354040283529160200191610744565b820191906000526020600020905b81548152906001019060200180831161072757829003601f168201915b505050505081565b606061075782610f2d565b6107955760405162461bcd60e51b815260206004820152600f60248201526e3ab73232b334b732b2103a37b5b2b760891b6044820152606401610665565b600d600e60008481526020019081526020016000206040516020016107bb929190613bb6565b6040516020818303038152906040529050919050565b600081815260066020908152604080832054835260058252808320815160608181018452825460ff161515825260018301805485518188028101880190965280865291969592948584019390929083018282801561085857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161083a575b50505050508152602001600282018054806020026020016040519081016040528092919081815260200182805480156108b057602002820191906000526020600020905b81548152602001906001019080831161089c575b5050505050815250509050806000015161091d57600880548060200260200160405190810160405280929190818152602001828054801561091057602002820191906000526020600020905b8154815260200190600101908083116108fc575b5050505050915050919050565b604081015151600854600091610932916140b0565b90506000816001600160401b0381111561094e5761094e61424a565b604051908082528060200260200182016040528015610977578160200160208202803683370190505b50905060005b6008548110156109d4576008818154811061099a5761099a614234565b90600052602060002001548282815181106109b7576109b7614234565b6020908102919091010152806109cc816141ed565b91505061097d565b5060005b836040015151811015610a4257836040015181815181106109fb576109fb614234565b60200260200101518260078054905083610a1591906140b0565b81518110610a2557610a25614234565b602090810291909101015280610a3a816141ed565b9150506109d8565b50949350505050565b60088181548110610a5b57600080fd5b600091825260209091200154905081565b6000546001600160a01b03163314610a965760405162461bcd60e51b815260040161066590613f04565b610aa1838383611c44565b505050565b8151835114610ac75760405162461bcd60e51b815260040161066590613f61565b6001600160a01b038416610aed5760405162461bcd60e51b815260040161066590613e32565b6001600160a01b038516331480610b095750610b098533610596565b610b705760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610665565b3360005b8451811015610ca5576000858281518110610b9157610b91614234565b602002602001015190506000858381518110610baf57610baf614234565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015610c005760405162461bcd60e51b815260040161066590613eba565b610c0a82826140e7565b6001600085815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002081905550816001600085815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610c8a91906140b0565b9250508190555050505080610c9e906141ed565b9050610b74565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610cf5929190613d37565b60405180910390a4610d0b818787878787611e81565b505050505050565b610d1d8282611fec565b6000828152600a60205260409020610aa19082611b68565b610d3f8282611b7d565b6000828152600a60205260409020610aa19082611bf7565b6000546001600160a01b03163314610d815760405162461bcd60e51b815260040161066590613f04565b610d8b85602c1090565b610da75760405162461bcd60e51b815260040161066590613f39565b610db085610f2d565b15610dcd5760405162461bcd60e51b815260040161066590613fea565b610dd78584612012565b610de2858383611c44565b610dfd338686604051806020016040528060008152506120a1565b5050505050565b60608151835114610e695760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610665565b600083516001600160401b03811115610e8457610e8461424a565b604051908082528060200260200182016040528015610ead578160200160208202803683370190505b50905060005b8451811015610f2557610ef8858281518110610ed157610ed1614234565b6020026020010151858381518110610eeb57610eeb614234565b60200260200101516105fd565b828281518110610f0a57610f0a614234565b6020908102919091010152610f1e816141ed565b9050610eb3565b509392505050565b604080516000808252602080830180855283519020858352600e90915283822091939092610f5c929101613baa565b6040516020818303038152906040528051906020012014159050919050565b6001600160a01b038316331480610f975750610f978333610596565b610fb35760405162461bcd60e51b815260040161066590613de9565b610aa183838361216a565b6000546001600160a01b03163314610fe85760405162461bcd60e51b815260040161066590613f04565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600f5461103f81336122f6565b61104983602c1090565b1561108b5760405162461bcd60e51b81526020600482015260126024820152713737b716b932b9b2b93b32b2103a37b5b2b760711b6044820152606401610665565b6110a6848484604051806020016040528060008152506120a1565b50505050565b60006106937fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70836111b1565b6000546001600160a01b031633146111025760405162461bcd60e51b815260040161066590613f04565b60105460ff16156111435760405162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b6044820152606401610665565b6010805460ff1916600117905560005b602d81101561118e5761117c818383602d811061117257611172614234565b6020020151612012565b80611186816141ed565b915050611153565b5050565b6000828152600a602052604081206111aa908361235a565b9392505050565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000546001600160a01b031633146112065760405162461bcd60e51b815260040161066590613f04565b61120f81612366565b50565b6000546001600160a01b0316331461123c5760405162461bcd60e51b815260040161066590613f04565b8551831461127d5760405162461bcd60e51b815260206004820152600e60248201526d0d2dcecc2d8d2c840d8cadccee8d60931b6044820152606401610665565b60005b838110156113b7576112ab87828151811061129d5761129d614234565b6020026020010151602c1090565b6112c75760405162461bcd60e51b815260040161066590613f39565b6112e98782815181106112dc576112dc614234565b6020026020010151610f2d565b156113065760405162461bcd60e51b815260040161066590613fea565b61138187828151811061131b5761131b614234565b602002602001015186868481811061133557611335614234565b90506020028101906113479190614047565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201292505050565b6113a587828151811061139657611396614234565b60200260200101518484611c44565b806113af816141ed565b915050611280565b50610d0b33878760405180602001604052806000815250612379565b600c80546106cb90614141565b6000546001600160a01b0316331461140a5760405162461bcd60e51b815260040161066590613f04565b60005b83518110156110a65761142b84828151811061139657611396614234565b80611435816141ed565b91505061140d565b6000546001600160a01b031633146114675760405162461bcd60e51b815260040161066590613f04565b805161118e90600d906020840190612f42565b336001600160a01b03831614156114e55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610665565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600081815260066020908152604080832054835260058252808320815160608181018452825460ff16151582526001830180548551818802810188019096528086529196959294858401939092908301828280156115d857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115ba575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561163057602002820191906000526020600020905b81548152602001906001019080831161161c575b505050505081525050905080600001516116a657600780548060200260200160405190810160405280929190818152602001828054801561091057602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161167c575050505050915050919050565b6020810151516007546000916116bb916140b0565b90506000816001600160401b038111156116d7576116d761424a565b604051908082528060200260200182016040528015611700578160200160208202803683370190505b50905060005b60075481101561177d576007818154811061172357611723614234565b9060005260206000200160009054906101000a90046001600160a01b031682828151811061175357611753614234565b6001600160a01b039092166020928302919091019091015280611775816141ed565b915050611706565b5060005b836020015151811015610a4257836020015181815181106117a4576117a4614234565b602002602001015182600780549050836117be91906140b0565b815181106117ce576117ce614234565b6001600160a01b0390921660209283029190910190910152806117f0816141ed565b915050611781565b600d80546106cb90614141565b6007818154811061181557600080fd5b6000918252602090912001546001600160a01b0316905081565b61183987602c1090565b6118555760405162461bcd60e51b815260040161066590613f39565b611864878787878787876124c5565b50505050505050565b6000818152600a6020526040812061069390612688565b6000546001600160a01b031633146118ae5760405162461bcd60e51b815260040161066590613f04565b61118e8282612692565b610d3f82826127da565b600480546106cb90614141565b6001600160a01b0384166118f55760405162461bcd60e51b815260040161066590613e32565b6001600160a01b03851633148061191157506119118533610596565b61192d5760405162461bcd60e51b815260040161066590613de9565b3361194681878761193d88612800565b610dfd88612800565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156119895760405162461bcd60e51b815260040161066590613eba565b61199384826140e7565b60008681526001602090815260408083206001600160a01b038c811685529252808320939093558816815290812080548692906119d19084906140b0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461186482888888888861284b565b6000546001600160a01b03163314611a5b5760405162461bcd60e51b815260040161066590613f04565b6001600160a01b038116611ac05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610665565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316331480611b375750611b378333610596565b611b535760405162461bcd60e51b815260040161066590613de9565b610aa1838383612915565b61118e8282612a23565b60006111aa836001600160a01b038416612aa9565b6001600160a01b0381163314611bed5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610665565b61118e8282612af8565b60006111aa836001600160a01b038416612b5f565b6000611c1782612c4c565b80611c265750611c2682612c71565b80611c355750611c3582612cc1565b80610693575061069382612ce6565b8051825114611c915760405162461bcd60e51b8152602060048201526019602482015278696e707574206c656e677468206d7573742062652073616d6560381b6044820152606401610665565b6000805b8351811015611daa5760006001600160a01b0316848281518110611cbb57611cbb614234565b60200260200101516001600160a01b03161415611d155760405162461bcd60e51b81526020600482015260186024820152774d757374206e6f74206265207a65726f2d6164647265737360401b6044820152606401610665565b81848281518110611d2857611d28614234565b6020026020010151848381518110611d4257611d42614234565b6020026020010151604051602001611d7f9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b6040516020818303038152906040528051906020012091508080611da2906141ed565b915050611c95565b5060008481526006602052604090819020829055517f8e075046dce288bbf3261a9e2b0827c1db0a26aa1b13b20d305cb13b062a7c8890611df090869086908690614012565b60405180910390a160008181526005602052604090205460ff1615611e155750505050565b6040805160608101825260018082526020808301878152838501879052600086815260058352949094208351815460ff191690151517815593518051939493611e65938501929190910190612fc6565b506040820151805161186491600284019160209091019061301b565b6001600160a01b0384163b15610d0b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611ec59089908990889088908890600401613c40565b602060405180830381600087803b158015611edf57600080fd5b505af1925050508015611f0f575060408051601f3d908101601f19168201909252611f0c918101906137f6565b60015b611fbc57611f1b614260565b806308c379a01415611f555750611f3061427c565b80611f3b5750611f57565b8060405162461bcd60e51b81526004016106659190613d4a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610665565b6001600160e01b0319811663bc197c8160e01b146118645760405162461bcd60e51b815260040161066590613d5d565b60008281526009602052604090206001015461200881336122f6565b610aa18383612a23565b604080516000815260208101808352815190209161203291849101613b8e565b6040516020818303038152906040528051906020012014156120825760405162461bcd60e51b8152602060048201526009602482015268195b5c1d1e4818da5960ba1b6044820152606401610665565b6000828152600e602090815260409091208251610aa192840190612f42565b6001600160a01b0384166120c75760405162461bcd60e51b815260040161066590613fa9565b336120d88160008761193d88612800565b60008481526001602090815260408083206001600160a01b03891684529091528120805485929061210a9084906140b0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610dfd8160008787878761284b565b6001600160a01b0383166121905760405162461bcd60e51b815260040161066590613e77565b80518251146121b15760405162461bcd60e51b815260040161066590613f61565b604080516020810190915260009081905233905b83518110156122975760008482815181106121e2576121e2614234565b60200260200101519050600084838151811061220057612200614234565b60209081029190910181015160008481526001835260408082206001600160a01b038c1683529093529190912054909150818110156122515760405162461bcd60e51b815260040161066590613da5565b61225b82826140e7565b60009384526001602090815260408086206001600160a01b038c168752909152909320929092555081905061228f816141ed565b9150506121c5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122e8929190613d37565b60405180910390a450505050565b61230082826111b1565b61118e57612318816001600160a01b03166014612cfc565b612323836020612cfc565b604051602001612334929190613bcb565b60408051601f198184030181529082905262461bcd60e51b825261066591600401613d4a565b60006111aa8383612e97565b805161118e906004906020840190612f42565b6001600160a01b03841661239f5760405162461bcd60e51b815260040161066590613fa9565b81518351146123c05760405162461bcd60e51b815260040161066590613f61565b3360005b845181101561245d578381815181106123df576123df614234565b6020026020010151600160008784815181106123fd576123fd614234565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461244591906140b0565b90915550819050612455816141ed565b9150506123c4565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124ae929190613d37565b60405180910390a4610dfd81600087878787611e81565b6000546001600160a01b031633146124ef5760405162461bcd60e51b815260040161066590613f04565b6124f887610f2d565b156125155760405162461bcd60e51b815260040161066590613fea565b61251f8782612012565b600083516001600160401b0381111561253a5761253a61424a565b604051908082528060200260200182016040528015612563578160200160208202803683370190505b509050600084516001600160401b038111156125815761258161424a565b6040519080825280602002602001820160405280156125aa578160200160208202803683370190505b50905060005b8551811015612656578581815181106125cb576125cb614234565b6020026020010151600001518382815181106125e9576125e9614234565b60200260200101906001600160a01b031690816001600160a01b03168152505085818151811061261b5761261b614234565b60200260200101516020015182828151811061263957612639614234565b60209081029190910101528061264e816141ed565b9150506125b0565b50612662898383611c44565b61267d338a86604051806020016040528060008152506120a1565b505050505050505050565b6000610693825490565b80518251146126df5760405162461bcd60e51b8152602060048201526019602482015278696e707574206c656e677468206d7573742062652073616d6560381b6044820152606401610665565b60005b82518110156127745760006001600160a01b031683828151811061270857612708614234565b60200260200101516001600160a01b031614156127625760405162461bcd60e51b81526020600482015260186024820152774d757374206e6f74206265207a65726f2d6164647265737360401b6044820152606401610665565b8061276c816141ed565b9150506126e2565b508151612788906007906020850190612fc6565b50805161279c90600890602084019061301b565b507f5d2bfbaa8b7f0a1c8af86340416cb6051131510959c7fd9ab84a1c75fed9464f82826040516127ce929190613cf6565b60405180910390a15050565b6000828152600960205260409020600101546127f681336122f6565b610aa18383612af8565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061283a5761283a614234565b602090810291909101015292915050565b6001600160a01b0384163b15610d0b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061288f9089908990889088908890600401613c9e565b602060405180830381600087803b1580156128a957600080fd5b505af19250505080156128d9575060408051601f3d908101601f191682019092526128d6918101906137f6565b60015b6128e557611f1b614260565b6001600160e01b0319811663f23a6e6160e01b146118645760405162461bcd60e51b815260040161066590613d5d565b6001600160a01b03831661293b5760405162461bcd60e51b815260040161066590613e77565b3361296b8185600061294c87612800565b61295587612800565b5050604080516020810190915260009052505050565b60008381526001602090815260408083206001600160a01b0388168452909152902054828110156129ae5760405162461bcd60e51b815260040161066590613da5565b6129b883826140e7565b60008581526001602090815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b612a2d82826111b1565b61118e5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612a653390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054612af057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610693565b506000610693565b612b0282826111b1565b1561118e5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015612c42576000612b836001836140e7565b8554909150600090612b97906001906140e7565b90506000866000018281548110612bb057612bb0614234565b9060005260206000200154905080876000018481548110612bd357612bd3614234565b600091825260208083209091019290925582815260018901909152604090208490558654879080612c0657612c0661421e565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610693565b6000915050610693565b60006001600160e01b03198216635a05180f60e01b1480610693575061069382612f1d565b60006001600160e01b03198216636cdb3d1360e11b1480612ca257506001600160e01b031982166303a24d0760e21b145b8061069357506301ffc9a760e01b6001600160e01b0319831614610693565b60006001600160e01b0319821663e8a3d48560e01b1480610693575061069382612c71565b6001600160e01b031916632dde656160e21b1490565b60606000612d0b8360026140c8565b612d169060026140b0565b6001600160401b03811115612d2d57612d2d61424a565b6040519080825280601f01601f191660200182016040528015612d57576020820181803683370190505b509050600360fc1b81600081518110612d7257612d72614234565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612da157612da1614234565b60200101906001600160f81b031916908160001a9053506000612dc58460026140c8565b612dd09060016140b0565b90505b6001811115612e48576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e0457612e04614234565b1a60f81b828281518110612e1a57612e1a614234565b60200101906001600160f81b031916908160001a90535060049490941c93612e418161412a565b9050612dd3565b5083156111aa5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610665565b81546000908210612ef55760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610665565b826000018281548110612f0a57612f0a614234565b9060005260206000200154905092915050565b60006001600160e01b03198216637965db0b60e01b1480610693575061069382612ce6565b828054612f4e90614141565b90600052602060002090601f016020900481019282612f705760008555612fb6565b82601f10612f8957805160ff1916838001178555612fb6565b82800160010185558215612fb6579182015b82811115612fb6578251825591602001919060010190612f9b565b50612fc2929150613055565b5090565b828054828255906000526020600020908101928215612fb6579160200282015b82811115612fb657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612fe6565b828054828255906000526020600020908101928215612fb65791602002820182811115612fb6578251825591602001919060010190612f9b565b5b80821115612fc25760008155600101613056565b600082601f83011261307b57600080fd5b813560206130888261408d565b60405161309582826141c1565b8381528281019150858301600585901b870184018810156130b557600080fd5b60005b858110156130dd5781356130cb81614305565b845292840192908401906001016130b8565b5090979650505050505050565b60008083601f8401126130fc57600080fd5b5081356001600160401b0381111561311357600080fd5b6020830191508360208260051b850101111561312e57600080fd5b9250929050565b600082601f83011261314657600080fd5b813560206131538261408d565b60405161316082826141c1565b8381528281019150858301600585901b8701840188101561318057600080fd5b60005b858110156130dd57813584529284019290840190600101613183565b600082601f8301126131b057600080fd5b81356001600160401b038111156131c9576131c961424a565b6040516131e0601f8301601f1916602001826141c1565b8181528460208386010111156131f557600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561322457600080fd5b81356111aa81614305565b6000806040838503121561324257600080fd5b823561324d81614305565b9150602083013561325d81614305565b809150509250929050565b600080600080600060a0868803121561328057600080fd5b853561328b81614305565b9450602086013561329b81614305565b935060408601356001600160401b03808211156132b757600080fd5b6132c389838a01613135565b945060608801359150808211156132d957600080fd5b6132e589838a01613135565b935060808801359150808211156132fb57600080fd5b506133088882890161319f565b9150509295509295909350565b600080600080600060a0868803121561332d57600080fd5b853561333881614305565b9450602086013561334881614305565b9350604086013592506060860135915060808601356001600160401b0381111561337157600080fd5b6133088882890161319f565b60008060006060848603121561339257600080fd5b833561339d81614305565b925060208401356001600160401b03808211156133b957600080fd5b6133c587838801613135565b935060408601359150808211156133db57600080fd5b506133e886828701613135565b9150509250925092565b6000806040838503121561340557600080fd5b823561341081614305565b91506020830135801515811461325d57600080fd5b6000806040838503121561343857600080fd5b823561344381614305565b946020939093013593505050565b60008060006060848603121561346657600080fd5b833561347181614305565b95602085013595506040909401359392505050565b6000806040838503121561349957600080fd5b82356001600160401b03808211156134b057600080fd5b818501915085601f8301126134c457600080fd5b813560206134d18261408d565b6040516134de82826141c1565b8381528281019150858301600585901b870184018b10156134fe57600080fd5b600096505b8487101561352a57803561351681614305565b835260019690960195918301918301613503565b509650508601359250508082111561354157600080fd5b5061354e85828601613135565b9150509250929050565b6000806040838503121561356b57600080fd5b82356001600160401b038082111561358257600080fd5b61358e8683870161306a565b9350602085013591508082111561354157600080fd5b600060208083850312156135b757600080fd5b82356001600160401b03808211156135ce57600080fd5b818501915085601f8301126135e257600080fd5b6040516135ee816141a1565b8083886105a08601111561360157600080fd5b6000805b602d81101561363b5782358681111561361c578283fd5b6136288c828a0161319f565b8552509287019291870191600101613605565b50929998505050505050505050565b60008060006060848603121561365f57600080fd5b83356001600160401b038082111561367657600080fd5b61368287838801613135565b9450602086013591508082111561369857600080fd5b6133c58783880161306a565b60008060008060008060a087890312156136bd57600080fd5b86356001600160401b03808211156136d457600080fd5b6136e08a838b01613135565b975060208901359150808211156136f657600080fd5b6137028a838b01613135565b9650604089013591508082111561371857600080fd5b6137248a838b016130ea565b9096509450606089013591508082111561373d57600080fd5b6137498a838b0161306a565b9350608089013591508082111561375f57600080fd5b5061376c89828a01613135565b9150509295509295509295565b60006020828403121561378b57600080fd5b5035919050565b600080604083850312156137a557600080fd5b82359150602083013561325d81614305565b600080604083850312156137ca57600080fd5b50508035926020909101359150565b6000602082840312156137eb57600080fd5b81356111aa8161431a565b60006020828403121561380857600080fd5b81516111aa8161431a565b60006020828403121561382557600080fd5b81356001600160401b0381111561383b57600080fd5b6138478482850161319f565b949350505050565b60008060006060848603121561386457600080fd5b8335925060208401356001600160401b038082111561369857600080fd5b600080600080600060a0868803121561389a57600080fd5b853594506020860135935060408601356001600160401b03808211156138bf57600080fd5b6138cb89838a0161319f565b945060608801359150808211156138e157600080fd5b6138ed89838a0161306a565b9350608088013591508082111561390357600080fd5b5061330888828901613135565b600080600080600080600060e0888a03121561392b57600080fd5b87359650602088013560ff8116811461394357600080fd5b955060408801359450606088013593506001600160401b036080890135111561396b57600080fd5b6080880135880189601f82011261398157600080fd5b61398b813561408d565b60405161399882826141c1565b8235808252602080830193508085019160061b8501018d10156139ba57600080fd5b60005b8435811015613a10576040828f0312156139d657600080fd5b6040516139e28161417c565b6139ec8335614305565b823581526020808401358183015290855293909301926040909101906001016139bd565b5090955050505060a088013591506001600160401b0360c08901351115613a3657600080fd5b613a468960c08a01358a0161319f565b905092959891949750929550565b600081518084526020808501945080840160005b83811015613a8d5781516001600160a01b031687529582019590820190600101613a68565b509495945050505050565b600081518084526020808501945080840160005b83811015613a8d57815187529582019590820190600101613aac565b60008151808452613ae08160208601602086016140fe565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613b0e57607f831692505b6020808410821415613b3057634e487b7160e01b600052602260045260246000fd5b818015613b445760018114613b5557613b82565b60ff19861689528489019650613b82565b60008881526020902060005b86811015613b7a5781548b820152908501908301613b61565b505084890196505b50505050505092915050565b60008251613ba08184602087016140fe565b9190910192915050565b60006111aa8284613af4565b6000613847613bc58386613af4565b84613af4565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c038160178501602088016140fe565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613c348160288401602088016140fe565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613c6c90830186613a98565b8281036060840152613c7e8186613a98565b90508281036080840152613c928185613ac8565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613cd890830184613ac8565b979650505050505050565b6020815260006111aa6020830184613a54565b604081526000613d096040830185613a54565b8281036020840152613d1b8185613a98565b95945050505050565b6020815260006111aa6020830184613a98565b604081526000613d096040830185613a98565b6020815260006111aa6020830184613ac8565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d3932b9b2b93b32b2103a37b5b2b760911b604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252600e908201526d185b1c9958591e481b5a5b9d195960921b604082015260600190565b83815260606020820152600061402b6060830185613a54565b828103604084015261403d8185613a98565b9695505050505050565b6000808335601e1984360301811261405e57600080fd5b8301803591506001600160401b0382111561407857600080fd5b60200191503681900382131561312e57600080fd5b60006001600160401b038211156140a6576140a661424a565b5060051b60200190565b600082198211156140c3576140c3614208565b500190565b60008160001904831182151516156140e2576140e2614208565b500290565b6000828210156140f9576140f9614208565b500390565b60005b83811015614119578181015183820152602001614101565b838111156110a65750506000910152565b60008161413957614139614208565b506000190190565b600181811c9082168061415557607f821691505b6020821081141561417657634e487b7160e01b600052602260045260246000fd5b50919050565b604081018181106001600160401b038211171561419b5761419b61424a565b60405250565b6105a081018181106001600160401b038211171561419b5761419b61424a565b601f8201601f191681016001600160401b03811182821017156141e6576141e661424a565b6040525050565b600060001982141561420157614201614208565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156142795760046000803e5060005160e01c5b90565b600060443d101561428a5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156142b957505050505090565b82850191508151818111156142d15750505050505090565b843d87010160208285010111156142eb5750505050505090565b6142fa602082860101876141c1565b509095945050505050565b6001600160a01b038116811461120f57600080fd5b6001600160e01b03198116811461120f57600080fdfea264697066735822122042fda46d018a6922841c668b02d3208079a6f644dca1c14463cf184f07247c1d64736f6c63430008060033e2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f700000000000000000000000000bb5e538350199ccceee5c400e16ffb6bb47a63d000000000000000000000000f03ba06dd459ae597357b491219fcb573f5fe68300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001053757065722043727970746f204d616e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055049505049000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f6170692d6d61696e6e65742e72617269626c652e636f6d2f636f6e74726163744d657461646174612f7b616464726573737d000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102685760003560e01c80639010d07c11610151578063c0ac9983116100c3578063d547741f11610087578063d547741f1461056d578063e8a3d48514610580578063e985e9c514610588578063f242432a146105c4578063f2fde38b146105d7578063f5298aca146105ea57600080fd5b8063c0ac998314610519578063c3a983b214610521578063c6bf326214610534578063ca15c87314610547578063ca1ef6e21461055a57600080fd5b80639928ebc7116101155780639928ebc71461049157806399e0dd7c146104a4578063a1ebf35d146104b7578063a217fddf146104de578063a22cb465146104e6578063b9c4d9fb146104f957600080fd5b80639010d07c1461043d57806391d1485414610450578063938e3d7b146104635780639558579b1461047657806395d89b411461048957600080fd5b80632f2ff15d116101ea5780636b20c454116101ae5780636b20c454146103c4578063715018a6146103d75780637a5e1e15146103df5780637df73e27146103f25780638da5cb5b146104055780638de918901461042a57600080fd5b80632f2ff15d1461036557806336568abe1461037857806340ff57b71461038b5780634e1273f41461039e5780634f558e79146103b157600080fd5b80631196a0c4116102315780631196a0c4146102fe57806313776a8d146103115780631559d3391461031a578063248a9ca31461032f5780632eb2c2d61461035257600080fd5b8062fdd58e1461026d57806301ffc9a71461029357806306fdde03146102b65780630e89341c146102cb5780630ebd4c7f146102de575b600080fd5b61028061027b366004613425565b6105fd565b6040519081526020015b60405180910390f35b6102a66102a13660046137d9565b610699565b604051901515815260200161028a565b6102be6106be565b60405161028a9190613d4a565b6102be6102d9366004613779565b61074c565b6102f16102ec366004613779565b6107d1565b60405161028a9190613d24565b61028061030c366004613779565b610a4b565b610280600f5481565b61032d61032836600461384f565b610a6c565b005b61028061033d366004613779565b60009081526009602052604090206001015490565b61032d610360366004613268565b610aa6565b61032d610373366004613792565b610d13565b61032d610386366004613792565b610d35565b61032d610399366004613882565b610d57565b6102f16103ac366004613486565b610e04565b6102a66103bf366004613779565b610f2d565b61032d6103d236600461337d565b610f7b565b61032d610fbe565b61032d6103ed366004613451565b611032565b6102a6610400366004613212565b6110ac565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161028a565b61032d6104383660046135a4565b6110d8565b61041261044b3660046137b7565b611192565b6102a661045e366004613792565b6111b1565b61032d610471366004613813565b6111dc565b61032d6104843660046136a4565b611212565b6102be6113d3565b61032d61049f36600461364a565b6113e0565b61032d6104b2366004613813565b61143d565b6102807fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b610280600081565b61032d6104f43660046133f2565b61147a565b61050c610507366004613779565b611551565b60405161028a9190613ce3565b6102be6117f8565b61041261052f366004613779565b611805565b61032d610542366004613910565b61182f565b610280610555366004613779565b61186d565b61032d610568366004613558565b611884565b61032d61057b366004613792565b6118b8565b6102be6118c2565b6102a661059636600461322f565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b61032d6105d2366004613315565b6118cf565b61032d6105e5366004613212565b611a31565b61032d6105f8366004613451565b611b1b565b60006001600160a01b03831661066e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982166371b921f960e11b1480610693575061069382611c0c565b600b80546106cb90614141565b80601f01602080910402602001604051908101604052809291908181526020018280546106f790614141565b80156107445780601f1061071957610100808354040283529160200191610744565b820191906000526020600020905b81548152906001019060200180831161072757829003601f168201915b505050505081565b606061075782610f2d565b6107955760405162461bcd60e51b815260206004820152600f60248201526e3ab73232b334b732b2103a37b5b2b760891b6044820152606401610665565b600d600e60008481526020019081526020016000206040516020016107bb929190613bb6565b6040516020818303038152906040529050919050565b600081815260066020908152604080832054835260058252808320815160608181018452825460ff161515825260018301805485518188028101880190965280865291969592948584019390929083018282801561085857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161083a575b50505050508152602001600282018054806020026020016040519081016040528092919081815260200182805480156108b057602002820191906000526020600020905b81548152602001906001019080831161089c575b5050505050815250509050806000015161091d57600880548060200260200160405190810160405280929190818152602001828054801561091057602002820191906000526020600020905b8154815260200190600101908083116108fc575b5050505050915050919050565b604081015151600854600091610932916140b0565b90506000816001600160401b0381111561094e5761094e61424a565b604051908082528060200260200182016040528015610977578160200160208202803683370190505b50905060005b6008548110156109d4576008818154811061099a5761099a614234565b90600052602060002001548282815181106109b7576109b7614234565b6020908102919091010152806109cc816141ed565b91505061097d565b5060005b836040015151811015610a4257836040015181815181106109fb576109fb614234565b60200260200101518260078054905083610a1591906140b0565b81518110610a2557610a25614234565b602090810291909101015280610a3a816141ed565b9150506109d8565b50949350505050565b60088181548110610a5b57600080fd5b600091825260209091200154905081565b6000546001600160a01b03163314610a965760405162461bcd60e51b815260040161066590613f04565b610aa1838383611c44565b505050565b8151835114610ac75760405162461bcd60e51b815260040161066590613f61565b6001600160a01b038416610aed5760405162461bcd60e51b815260040161066590613e32565b6001600160a01b038516331480610b095750610b098533610596565b610b705760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610665565b3360005b8451811015610ca5576000858281518110610b9157610b91614234565b602002602001015190506000858381518110610baf57610baf614234565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015610c005760405162461bcd60e51b815260040161066590613eba565b610c0a82826140e7565b6001600085815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002081905550816001600085815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610c8a91906140b0565b9250508190555050505080610c9e906141ed565b9050610b74565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610cf5929190613d37565b60405180910390a4610d0b818787878787611e81565b505050505050565b610d1d8282611fec565b6000828152600a60205260409020610aa19082611b68565b610d3f8282611b7d565b6000828152600a60205260409020610aa19082611bf7565b6000546001600160a01b03163314610d815760405162461bcd60e51b815260040161066590613f04565b610d8b85602c1090565b610da75760405162461bcd60e51b815260040161066590613f39565b610db085610f2d565b15610dcd5760405162461bcd60e51b815260040161066590613fea565b610dd78584612012565b610de2858383611c44565b610dfd338686604051806020016040528060008152506120a1565b5050505050565b60608151835114610e695760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610665565b600083516001600160401b03811115610e8457610e8461424a565b604051908082528060200260200182016040528015610ead578160200160208202803683370190505b50905060005b8451811015610f2557610ef8858281518110610ed157610ed1614234565b6020026020010151858381518110610eeb57610eeb614234565b60200260200101516105fd565b828281518110610f0a57610f0a614234565b6020908102919091010152610f1e816141ed565b9050610eb3565b509392505050565b604080516000808252602080830180855283519020858352600e90915283822091939092610f5c929101613baa565b6040516020818303038152906040528051906020012014159050919050565b6001600160a01b038316331480610f975750610f978333610596565b610fb35760405162461bcd60e51b815260040161066590613de9565b610aa183838361216a565b6000546001600160a01b03163314610fe85760405162461bcd60e51b815260040161066590613f04565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600f5461103f81336122f6565b61104983602c1090565b1561108b5760405162461bcd60e51b81526020600482015260126024820152713737b716b932b9b2b93b32b2103a37b5b2b760711b6044820152606401610665565b6110a6848484604051806020016040528060008152506120a1565b50505050565b60006106937fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70836111b1565b6000546001600160a01b031633146111025760405162461bcd60e51b815260040161066590613f04565b60105460ff16156111435760405162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b6044820152606401610665565b6010805460ff1916600117905560005b602d81101561118e5761117c818383602d811061117257611172614234565b6020020151612012565b80611186816141ed565b915050611153565b5050565b6000828152600a602052604081206111aa908361235a565b9392505050565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000546001600160a01b031633146112065760405162461bcd60e51b815260040161066590613f04565b61120f81612366565b50565b6000546001600160a01b0316331461123c5760405162461bcd60e51b815260040161066590613f04565b8551831461127d5760405162461bcd60e51b815260206004820152600e60248201526d0d2dcecc2d8d2c840d8cadccee8d60931b6044820152606401610665565b60005b838110156113b7576112ab87828151811061129d5761129d614234565b6020026020010151602c1090565b6112c75760405162461bcd60e51b815260040161066590613f39565b6112e98782815181106112dc576112dc614234565b6020026020010151610f2d565b156113065760405162461bcd60e51b815260040161066590613fea565b61138187828151811061131b5761131b614234565b602002602001015186868481811061133557611335614234565b90506020028101906113479190614047565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061201292505050565b6113a587828151811061139657611396614234565b60200260200101518484611c44565b806113af816141ed565b915050611280565b50610d0b33878760405180602001604052806000815250612379565b600c80546106cb90614141565b6000546001600160a01b0316331461140a5760405162461bcd60e51b815260040161066590613f04565b60005b83518110156110a65761142b84828151811061139657611396614234565b80611435816141ed565b91505061140d565b6000546001600160a01b031633146114675760405162461bcd60e51b815260040161066590613f04565b805161118e90600d906020840190612f42565b336001600160a01b03831614156114e55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610665565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600081815260066020908152604080832054835260058252808320815160608181018452825460ff16151582526001830180548551818802810188019096528086529196959294858401939092908301828280156115d857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115ba575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561163057602002820191906000526020600020905b81548152602001906001019080831161161c575b505050505081525050905080600001516116a657600780548060200260200160405190810160405280929190818152602001828054801561091057602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161167c575050505050915050919050565b6020810151516007546000916116bb916140b0565b90506000816001600160401b038111156116d7576116d761424a565b604051908082528060200260200182016040528015611700578160200160208202803683370190505b50905060005b60075481101561177d576007818154811061172357611723614234565b9060005260206000200160009054906101000a90046001600160a01b031682828151811061175357611753614234565b6001600160a01b039092166020928302919091019091015280611775816141ed565b915050611706565b5060005b836020015151811015610a4257836020015181815181106117a4576117a4614234565b602002602001015182600780549050836117be91906140b0565b815181106117ce576117ce614234565b6001600160a01b0390921660209283029190910190910152806117f0816141ed565b915050611781565b600d80546106cb90614141565b6007818154811061181557600080fd5b6000918252602090912001546001600160a01b0316905081565b61183987602c1090565b6118555760405162461bcd60e51b815260040161066590613f39565b611864878787878787876124c5565b50505050505050565b6000818152600a6020526040812061069390612688565b6000546001600160a01b031633146118ae5760405162461bcd60e51b815260040161066590613f04565b61118e8282612692565b610d3f82826127da565b600480546106cb90614141565b6001600160a01b0384166118f55760405162461bcd60e51b815260040161066590613e32565b6001600160a01b03851633148061191157506119118533610596565b61192d5760405162461bcd60e51b815260040161066590613de9565b3361194681878761193d88612800565b610dfd88612800565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156119895760405162461bcd60e51b815260040161066590613eba565b61199384826140e7565b60008681526001602090815260408083206001600160a01b038c811685529252808320939093558816815290812080548692906119d19084906140b0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461186482888888888861284b565b6000546001600160a01b03163314611a5b5760405162461bcd60e51b815260040161066590613f04565b6001600160a01b038116611ac05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610665565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316331480611b375750611b378333610596565b611b535760405162461bcd60e51b815260040161066590613de9565b610aa1838383612915565b61118e8282612a23565b60006111aa836001600160a01b038416612aa9565b6001600160a01b0381163314611bed5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610665565b61118e8282612af8565b60006111aa836001600160a01b038416612b5f565b6000611c1782612c4c565b80611c265750611c2682612c71565b80611c355750611c3582612cc1565b80610693575061069382612ce6565b8051825114611c915760405162461bcd60e51b8152602060048201526019602482015278696e707574206c656e677468206d7573742062652073616d6560381b6044820152606401610665565b6000805b8351811015611daa5760006001600160a01b0316848281518110611cbb57611cbb614234565b60200260200101516001600160a01b03161415611d155760405162461bcd60e51b81526020600482015260186024820152774d757374206e6f74206265207a65726f2d6164647265737360401b6044820152606401610665565b81848281518110611d2857611d28614234565b6020026020010151848381518110611d4257611d42614234565b6020026020010151604051602001611d7f9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b6040516020818303038152906040528051906020012091508080611da2906141ed565b915050611c95565b5060008481526006602052604090819020829055517f8e075046dce288bbf3261a9e2b0827c1db0a26aa1b13b20d305cb13b062a7c8890611df090869086908690614012565b60405180910390a160008181526005602052604090205460ff1615611e155750505050565b6040805160608101825260018082526020808301878152838501879052600086815260058352949094208351815460ff191690151517815593518051939493611e65938501929190910190612fc6565b506040820151805161186491600284019160209091019061301b565b6001600160a01b0384163b15610d0b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611ec59089908990889088908890600401613c40565b602060405180830381600087803b158015611edf57600080fd5b505af1925050508015611f0f575060408051601f3d908101601f19168201909252611f0c918101906137f6565b60015b611fbc57611f1b614260565b806308c379a01415611f555750611f3061427c565b80611f3b5750611f57565b8060405162461bcd60e51b81526004016106659190613d4a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610665565b6001600160e01b0319811663bc197c8160e01b146118645760405162461bcd60e51b815260040161066590613d5d565b60008281526009602052604090206001015461200881336122f6565b610aa18383612a23565b604080516000815260208101808352815190209161203291849101613b8e565b6040516020818303038152906040528051906020012014156120825760405162461bcd60e51b8152602060048201526009602482015268195b5c1d1e4818da5960ba1b6044820152606401610665565b6000828152600e602090815260409091208251610aa192840190612f42565b6001600160a01b0384166120c75760405162461bcd60e51b815260040161066590613fa9565b336120d88160008761193d88612800565b60008481526001602090815260408083206001600160a01b03891684529091528120805485929061210a9084906140b0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610dfd8160008787878761284b565b6001600160a01b0383166121905760405162461bcd60e51b815260040161066590613e77565b80518251146121b15760405162461bcd60e51b815260040161066590613f61565b604080516020810190915260009081905233905b83518110156122975760008482815181106121e2576121e2614234565b60200260200101519050600084838151811061220057612200614234565b60209081029190910181015160008481526001835260408082206001600160a01b038c1683529093529190912054909150818110156122515760405162461bcd60e51b815260040161066590613da5565b61225b82826140e7565b60009384526001602090815260408086206001600160a01b038c168752909152909320929092555081905061228f816141ed565b9150506121c5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122e8929190613d37565b60405180910390a450505050565b61230082826111b1565b61118e57612318816001600160a01b03166014612cfc565b612323836020612cfc565b604051602001612334929190613bcb565b60408051601f198184030181529082905262461bcd60e51b825261066591600401613d4a565b60006111aa8383612e97565b805161118e906004906020840190612f42565b6001600160a01b03841661239f5760405162461bcd60e51b815260040161066590613fa9565b81518351146123c05760405162461bcd60e51b815260040161066590613f61565b3360005b845181101561245d578381815181106123df576123df614234565b6020026020010151600160008784815181106123fd576123fd614234565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461244591906140b0565b90915550819050612455816141ed565b9150506123c4565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124ae929190613d37565b60405180910390a4610dfd81600087878787611e81565b6000546001600160a01b031633146124ef5760405162461bcd60e51b815260040161066590613f04565b6124f887610f2d565b156125155760405162461bcd60e51b815260040161066590613fea565b61251f8782612012565b600083516001600160401b0381111561253a5761253a61424a565b604051908082528060200260200182016040528015612563578160200160208202803683370190505b509050600084516001600160401b038111156125815761258161424a565b6040519080825280602002602001820160405280156125aa578160200160208202803683370190505b50905060005b8551811015612656578581815181106125cb576125cb614234565b6020026020010151600001518382815181106125e9576125e9614234565b60200260200101906001600160a01b031690816001600160a01b03168152505085818151811061261b5761261b614234565b60200260200101516020015182828151811061263957612639614234565b60209081029190910101528061264e816141ed565b9150506125b0565b50612662898383611c44565b61267d338a86604051806020016040528060008152506120a1565b505050505050505050565b6000610693825490565b80518251146126df5760405162461bcd60e51b8152602060048201526019602482015278696e707574206c656e677468206d7573742062652073616d6560381b6044820152606401610665565b60005b82518110156127745760006001600160a01b031683828151811061270857612708614234565b60200260200101516001600160a01b031614156127625760405162461bcd60e51b81526020600482015260186024820152774d757374206e6f74206265207a65726f2d6164647265737360401b6044820152606401610665565b8061276c816141ed565b9150506126e2565b508151612788906007906020850190612fc6565b50805161279c90600890602084019061301b565b507f5d2bfbaa8b7f0a1c8af86340416cb6051131510959c7fd9ab84a1c75fed9464f82826040516127ce929190613cf6565b60405180910390a15050565b6000828152600960205260409020600101546127f681336122f6565b610aa18383612af8565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061283a5761283a614234565b602090810291909101015292915050565b6001600160a01b0384163b15610d0b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061288f9089908990889088908890600401613c9e565b602060405180830381600087803b1580156128a957600080fd5b505af19250505080156128d9575060408051601f3d908101601f191682019092526128d6918101906137f6565b60015b6128e557611f1b614260565b6001600160e01b0319811663f23a6e6160e01b146118645760405162461bcd60e51b815260040161066590613d5d565b6001600160a01b03831661293b5760405162461bcd60e51b815260040161066590613e77565b3361296b8185600061294c87612800565b61295587612800565b5050604080516020810190915260009052505050565b60008381526001602090815260408083206001600160a01b0388168452909152902054828110156129ae5760405162461bcd60e51b815260040161066590613da5565b6129b883826140e7565b60008581526001602090815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b612a2d82826111b1565b61118e5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612a653390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054612af057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610693565b506000610693565b612b0282826111b1565b1561118e5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015612c42576000612b836001836140e7565b8554909150600090612b97906001906140e7565b90506000866000018281548110612bb057612bb0614234565b9060005260206000200154905080876000018481548110612bd357612bd3614234565b600091825260208083209091019290925582815260018901909152604090208490558654879080612c0657612c0661421e565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610693565b6000915050610693565b60006001600160e01b03198216635a05180f60e01b1480610693575061069382612f1d565b60006001600160e01b03198216636cdb3d1360e11b1480612ca257506001600160e01b031982166303a24d0760e21b145b8061069357506301ffc9a760e01b6001600160e01b0319831614610693565b60006001600160e01b0319821663e8a3d48560e01b1480610693575061069382612c71565b6001600160e01b031916632dde656160e21b1490565b60606000612d0b8360026140c8565b612d169060026140b0565b6001600160401b03811115612d2d57612d2d61424a565b6040519080825280601f01601f191660200182016040528015612d57576020820181803683370190505b509050600360fc1b81600081518110612d7257612d72614234565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612da157612da1614234565b60200101906001600160f81b031916908160001a9053506000612dc58460026140c8565b612dd09060016140b0565b90505b6001811115612e48576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e0457612e04614234565b1a60f81b828281518110612e1a57612e1a614234565b60200101906001600160f81b031916908160001a90535060049490941c93612e418161412a565b9050612dd3565b5083156111aa5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610665565b81546000908210612ef55760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610665565b826000018281548110612f0a57612f0a614234565b9060005260206000200154905092915050565b60006001600160e01b03198216637965db0b60e01b1480610693575061069382612ce6565b828054612f4e90614141565b90600052602060002090601f016020900481019282612f705760008555612fb6565b82601f10612f8957805160ff1916838001178555612fb6565b82800160010185558215612fb6579182015b82811115612fb6578251825591602001919060010190612f9b565b50612fc2929150613055565b5090565b828054828255906000526020600020908101928215612fb6579160200282015b82811115612fb657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612fe6565b828054828255906000526020600020908101928215612fb65791602002820182811115612fb6578251825591602001919060010190612f9b565b5b80821115612fc25760008155600101613056565b600082601f83011261307b57600080fd5b813560206130888261408d565b60405161309582826141c1565b8381528281019150858301600585901b870184018810156130b557600080fd5b60005b858110156130dd5781356130cb81614305565b845292840192908401906001016130b8565b5090979650505050505050565b60008083601f8401126130fc57600080fd5b5081356001600160401b0381111561311357600080fd5b6020830191508360208260051b850101111561312e57600080fd5b9250929050565b600082601f83011261314657600080fd5b813560206131538261408d565b60405161316082826141c1565b8381528281019150858301600585901b8701840188101561318057600080fd5b60005b858110156130dd57813584529284019290840190600101613183565b600082601f8301126131b057600080fd5b81356001600160401b038111156131c9576131c961424a565b6040516131e0601f8301601f1916602001826141c1565b8181528460208386010111156131f557600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561322457600080fd5b81356111aa81614305565b6000806040838503121561324257600080fd5b823561324d81614305565b9150602083013561325d81614305565b809150509250929050565b600080600080600060a0868803121561328057600080fd5b853561328b81614305565b9450602086013561329b81614305565b935060408601356001600160401b03808211156132b757600080fd5b6132c389838a01613135565b945060608801359150808211156132d957600080fd5b6132e589838a01613135565b935060808801359150808211156132fb57600080fd5b506133088882890161319f565b9150509295509295909350565b600080600080600060a0868803121561332d57600080fd5b853561333881614305565b9450602086013561334881614305565b9350604086013592506060860135915060808601356001600160401b0381111561337157600080fd5b6133088882890161319f565b60008060006060848603121561339257600080fd5b833561339d81614305565b925060208401356001600160401b03808211156133b957600080fd5b6133c587838801613135565b935060408601359150808211156133db57600080fd5b506133e886828701613135565b9150509250925092565b6000806040838503121561340557600080fd5b823561341081614305565b91506020830135801515811461325d57600080fd5b6000806040838503121561343857600080fd5b823561344381614305565b946020939093013593505050565b60008060006060848603121561346657600080fd5b833561347181614305565b95602085013595506040909401359392505050565b6000806040838503121561349957600080fd5b82356001600160401b03808211156134b057600080fd5b818501915085601f8301126134c457600080fd5b813560206134d18261408d565b6040516134de82826141c1565b8381528281019150858301600585901b870184018b10156134fe57600080fd5b600096505b8487101561352a57803561351681614305565b835260019690960195918301918301613503565b509650508601359250508082111561354157600080fd5b5061354e85828601613135565b9150509250929050565b6000806040838503121561356b57600080fd5b82356001600160401b038082111561358257600080fd5b61358e8683870161306a565b9350602085013591508082111561354157600080fd5b600060208083850312156135b757600080fd5b82356001600160401b03808211156135ce57600080fd5b818501915085601f8301126135e257600080fd5b6040516135ee816141a1565b8083886105a08601111561360157600080fd5b6000805b602d81101561363b5782358681111561361c578283fd5b6136288c828a0161319f565b8552509287019291870191600101613605565b50929998505050505050505050565b60008060006060848603121561365f57600080fd5b83356001600160401b038082111561367657600080fd5b61368287838801613135565b9450602086013591508082111561369857600080fd5b6133c58783880161306a565b60008060008060008060a087890312156136bd57600080fd5b86356001600160401b03808211156136d457600080fd5b6136e08a838b01613135565b975060208901359150808211156136f657600080fd5b6137028a838b01613135565b9650604089013591508082111561371857600080fd5b6137248a838b016130ea565b9096509450606089013591508082111561373d57600080fd5b6137498a838b0161306a565b9350608089013591508082111561375f57600080fd5b5061376c89828a01613135565b9150509295509295509295565b60006020828403121561378b57600080fd5b5035919050565b600080604083850312156137a557600080fd5b82359150602083013561325d81614305565b600080604083850312156137ca57600080fd5b50508035926020909101359150565b6000602082840312156137eb57600080fd5b81356111aa8161431a565b60006020828403121561380857600080fd5b81516111aa8161431a565b60006020828403121561382557600080fd5b81356001600160401b0381111561383b57600080fd5b6138478482850161319f565b949350505050565b60008060006060848603121561386457600080fd5b8335925060208401356001600160401b038082111561369857600080fd5b600080600080600060a0868803121561389a57600080fd5b853594506020860135935060408601356001600160401b03808211156138bf57600080fd5b6138cb89838a0161319f565b945060608801359150808211156138e157600080fd5b6138ed89838a0161306a565b9350608088013591508082111561390357600080fd5b5061330888828901613135565b600080600080600080600060e0888a03121561392b57600080fd5b87359650602088013560ff8116811461394357600080fd5b955060408801359450606088013593506001600160401b036080890135111561396b57600080fd5b6080880135880189601f82011261398157600080fd5b61398b813561408d565b60405161399882826141c1565b8235808252602080830193508085019160061b8501018d10156139ba57600080fd5b60005b8435811015613a10576040828f0312156139d657600080fd5b6040516139e28161417c565b6139ec8335614305565b823581526020808401358183015290855293909301926040909101906001016139bd565b5090955050505060a088013591506001600160401b0360c08901351115613a3657600080fd5b613a468960c08a01358a0161319f565b905092959891949750929550565b600081518084526020808501945080840160005b83811015613a8d5781516001600160a01b031687529582019590820190600101613a68565b509495945050505050565b600081518084526020808501945080840160005b83811015613a8d57815187529582019590820190600101613aac565b60008151808452613ae08160208601602086016140fe565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613b0e57607f831692505b6020808410821415613b3057634e487b7160e01b600052602260045260246000fd5b818015613b445760018114613b5557613b82565b60ff19861689528489019650613b82565b60008881526020902060005b86811015613b7a5781548b820152908501908301613b61565b505084890196505b50505050505092915050565b60008251613ba08184602087016140fe565b9190910192915050565b60006111aa8284613af4565b6000613847613bc58386613af4565b84613af4565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c038160178501602088016140fe565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613c348160288401602088016140fe565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613c6c90830186613a98565b8281036060840152613c7e8186613a98565b90508281036080840152613c928185613ac8565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613cd890830184613ac8565b979650505050505050565b6020815260006111aa6020830184613a54565b604081526000613d096040830185613a54565b8281036020840152613d1b8185613a98565b95945050505050565b6020815260006111aa6020830184613a98565b604081526000613d096040830185613a98565b6020815260006111aa6020830184613ac8565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d3932b9b2b93b32b2103a37b5b2b760911b604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252600e908201526d185b1c9958591e481b5a5b9d195960921b604082015260600190565b83815260606020820152600061402b6060830185613a54565b828103604084015261403d8185613a98565b9695505050505050565b6000808335601e1984360301811261405e57600080fd5b8301803591506001600160401b0382111561407857600080fd5b60200191503681900382131561312e57600080fd5b60006001600160401b038211156140a6576140a661424a565b5060051b60200190565b600082198211156140c3576140c3614208565b500190565b60008160001904831182151516156140e2576140e2614208565b500290565b6000828210156140f9576140f9614208565b500390565b60005b83811015614119578181015183820152602001614101565b838111156110a65750506000910152565b60008161413957614139614208565b506000190190565b600181811c9082168061415557607f821691505b6020821081141561417657634e487b7160e01b600052602260045260246000fd5b50919050565b604081018181106001600160401b038211171561419b5761419b61424a565b60405250565b6105a081018181106001600160401b038211171561419b5761419b61424a565b601f8201601f191681016001600160401b03811182821017156141e6576141e661424a565b6040525050565b600060001982141561420157614201614208565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156142795760046000803e5060005160e01c5b90565b600060443d101561428a5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156142b957505050505090565b82850191508151818111156142d15750505050505090565b843d87010160208285010111156142eb5750505050505090565b6142fa602082860101876141c1565b509095945050505050565b6001600160a01b038116811461120f57600080fd5b6001600160e01b03198116811461120f57600080fdfea264697066735822122042fda46d018a6922841c668b02d3208079a6f644dca1c14463cf184f07247c1d64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000bb5e538350199ccceee5c400e16ffb6bb47a63d000000000000000000000000f03ba06dd459ae597357b491219fcb573f5fe68300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001053757065722043727970746f204d616e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055049505049000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f6170692d6d61696e6e65742e72617269626c652e636f6d2f636f6e74726163744d657461646174612f7b616464726573737d000000000000
-----Decoded View---------------
Arg [0] : creator (address): 0x0BB5E538350199cccEee5C400E16FFb6BB47a63d
Arg [1] : signer (address): 0xf03Ba06Dd459AE597357b491219fCb573f5fe683
Arg [2] : _name (string): Super Crypto Man
Arg [3] : _symbol (string): PIPPI
Arg [4] : contractURI (string): https://api-mainnet.rarible.com/contractMetadata/{address}
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000bb5e538350199ccceee5c400e16ffb6bb47a63d
Arg [1] : 000000000000000000000000f03ba06dd459ae597357b491219fcb573f5fe683
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [6] : 53757065722043727970746f204d616e00000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 5049505049000000000000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [10] : 68747470733a2f2f6170692d6d61696e6e65742e72617269626c652e636f6d2f
Arg [11] : 636f6e74726163744d657461646174612f7b616464726573737d000000000000
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.