ERC-1155
Overview
Max Total Supply
186 PMJR
Holders
36
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:
LegacyOfPolMedinaJr
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; error InvalidMint(); error InvalidApproval(); error NoMaxSupply(); contract LegacyOfPolMedinaJr is Ownable, ReentrancyGuard, ERC1155Burnable, ERC1155Pausable, ERC1155Supply { using Strings for uint256; // ============ Constants ============ //royalty percent uint256 public constant ROYALTY_PERCENT = 1000; //royalty recipient PaymentSplitter public immutable ROYALTY_RECIPIENT; //bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; // ============ Structs ============ struct Token { uint256 maxSupply; uint256 mintPrice; bool active; } // ============ Storage ============ //mapping of token id to token info (max, price) mapping(uint256 => Token) private _tokens; //the contract metadata string private _contractURI; //a flag that allows NFTs to be listed on marketplaces //this helps to prevent people from listing at a lower //price during the whitelist bool approvable = false; // ============ Modifier ============ modifier canApprove { if (!approvable) revert InvalidApproval(); _; } // ============ Deploy ============ /** * @dev Sets the base token uri */ constructor( string memory contract_uri, string memory token_uri, address[] memory payees, uint256[] memory shares ) ERC1155(token_uri) { ROYALTY_RECIPIENT = new PaymentSplitter(payees, shares); _contractURI = contract_uri; } // ============ Read Methods ============ /** * @dev Returns the contract URI */ function contractURI() external view returns(string memory) { return _contractURI; } /** * @dev Returns true if the token exists */ function exists(uint256 id) public view override returns(bool) { return _tokens[id].active; } /** * @dev Get the maximum supply for a token */ function maxSupply(uint256 id) public view returns(uint256) { return _tokens[id].maxSupply; } /** * @dev Get the mint supply for a token */ function mintPrice(uint256 id) public view returns(uint256) { return _tokens[id].mintPrice; } /** * @dev Returns the name */ function name() external pure returns(string memory) { return "The Legacy of Pol Medina Jr."; } /** * @dev Get the remaining supply for a token */ function remainingSupply(uint256 id) public view returns(uint256) { uint256 max = maxSupply(id); if (max == 0) revert NoMaxSupply(); return max - totalSupply(id); } /** * @dev implements ERC2981 `royaltyInfo()` */ function royaltyInfo(uint256, uint256 salePrice) external view returns(address receiver, uint256 royaltyAmount) { return ( payable(address(ROYALTY_RECIPIENT)), (salePrice * ROYALTY_PERCENT) / 10000 ); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns(bool) { //support ERC2981 if (interfaceId == _INTERFACE_ID_ERC2981) { return true; } return super.supportsInterface(interfaceId); } /** * @dev Returns the symbol */ function symbol() external pure returns(string memory) { return "PMJR"; } /** * @dev Returns the max and price for a token */ function tokenInfo(uint256 id) external view returns(uint256 max, uint256 price, uint256 remaining) { return ( _tokens[id].maxSupply, _tokens[id].mintPrice, remainingSupply(id) ); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256 id) public view virtual override returns(string memory) { if (exists(id)) { return string(abi.encodePacked(super.uri(id), "/", id.toString(), ".json")); } return string(abi.encodePacked(super.uri(id), "/{id}.json")); } // ============ Write Methods ============ /** * @dev Allows anyone to mint by purchasing */ function buy(address to, uint256 id, uint256 quantity, bytes memory proof) external payable nonReentrant { //make sure the minter signed this off if (ECDSA.recover( ECDSA.toEthSignedMessageHash( keccak256(abi.encodePacked("authorized", to)) ), proof ) != owner()) revert InvalidMint(); //get price uint256 price = mintPrice(id) * quantity; //if there is a price and the amount sent is less than if(price == 0 || msg.value < price) revert InvalidMint(); //we are okay to mint _mintSupply(to, id, quantity); } /** * @dev Check if can approve before approving */ function setApprovalForAll(address operator, bool approved) public virtual override canApprove { super.setApprovalForAll(operator, approved); } // ============ Admin Methods ============ /** * @dev Adds a token that can be minted */ function addToken(uint256 id, uint256 max, uint256 price, uint8 prizes) public onlyOwner { _tokens[id] = Token(max, price, true); if (prizes > 0) { _mintSupply(_msgSender(), id, prizes); } } /** * @dev Allows admin to mint */ function mint(address to, uint256 id, uint256 quantity) public onlyOwner { _mintSupply(to, id, quantity); } /** * @dev Allows admin to update URI */ function updateURI(string memory newuri) public onlyOwner { _setURI(newuri); } /** * @dev Sends the entire contract balance to a `recipient`. * This also enables NFTs to be listable on marketplaces. */ function withdraw(address recipient) external virtual nonReentrant onlyOwner { //now make approvable, it's only here we will //set this so it's kind of immutable (a one time deal) if (!approvable) { approvable = true; } Address.sendValue(payable(recipient), address(this).balance); } /** * @dev This contract should not hold any tokens in the first place. * This method exists to transfer out tokens funds. */ function withdraw(IERC20 erc20, address recipient, uint256 amount) external virtual nonReentrant onlyOwner { SafeERC20.safeTransfer(erc20, recipient, amount); } // ============ Internal Methods ============ /** * @dev Mint token considering max supply */ function _mintSupply(address to, uint256 id, uint256 quantity) internal { //if the id does not exists if (!exists(id)) revert InvalidMint(); //get max and calculated supply uint256 max = maxSupply(id); uint256 supply = totalSupply(id) + quantity; //if there is a max supply and it was exceeded if(max > 0 && supply > max) revert InvalidMint(); //we are okay to mint _mint(to, id, quantity, ""); } // ============ Overrides ============ /** * @dev Describes linear override for `_beforeTokenTransfer` used in * both `ERC721` and `ERC721Pausable` */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Pausable, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @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 { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. 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. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // 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) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @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) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // 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 (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): 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. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @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) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @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 // OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Burnable.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Pausable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC1155 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * _Available since v3.1._ */ abstract contract ERC1155Pausable is ERC1155, Pausable { /** * @dev See {ERC1155-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); require(!paused(), "ERC1155Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC1155/ERC1155.sol) 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 { _setApprovalForAll(_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( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(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( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); 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"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); 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"); unchecked { _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 `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, 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 (uint256 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 `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, 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 from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); 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: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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.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.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 // OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155Receiver.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/IERC1155MetadataURI.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) 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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) 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 // OpenZeppelin Contracts v4.4.0 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"contract_uri","type":"string"},{"internalType":"string","name":"token_uri","type":"string"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidApproval","type":"error"},{"inputs":[],"name":"InvalidMint","type":"error"},{"inputs":[],"name":"NoMaxSupply","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ROYALTY_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_RECIPIENT","outputs":[{"internalType":"contract PaymentSplitter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint8","name":"prizes","type":"uint8"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"buy","outputs":[],"stateMutability":"payable","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":"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":"uint256","name":"id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","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":"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":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenInfo","outputs":[{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"erc20","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526009805460ff191690553480156200001b57600080fd5b5060405162004a2938038062004a298339810160408190526200003e9162000361565b826200004a33620000cd565b6001805562000059816200011d565b506005805460ff1916905560405182908290620000769062000136565b620000839291906200048a565b604051809103906000f080158015620000a0573d6000803e3d6000fd5b506001600160a01b03166080528351620000c290600890602087019062000144565b50505050506200054f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516200013290600490602084019062000144565b5050565b61116280620038c783390190565b828054620001529062000512565b90600052602060002090601f016020900481019282620001765760008555620001c1565b82601f106200019157805160ff1916838001178555620001c1565b82800160010185558215620001c1579182015b82811115620001c1578251825591602001919060010190620001a4565b50620001cf929150620001d3565b5090565b5b80821115620001cf5760008155600101620001d4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200022b576200022b620001ea565b604052919050565b600082601f8301126200024557600080fd5b81516001600160401b03811115620002615762000261620001ea565b602062000277601f8301601f1916820162000200565b82815285828487010111156200028c57600080fd5b60005b83811015620002ac5785810183015182820184015282016200028f565b83811115620002be5760008385840101525b5095945050505050565b60006001600160401b03821115620002e457620002e4620001ea565b5060051b60200190565b600082601f8301126200030057600080fd5b81516020620003196200031383620002c8565b62000200565b82815260059290921b840181019181810190868411156200033957600080fd5b8286015b848110156200035657805183529183019183016200033d565b509695505050505050565b600080600080608085870312156200037857600080fd5b84516001600160401b03808211156200039057600080fd5b6200039e8883890162000233565b9550602091508187015181811115620003b657600080fd5b620003c489828a0162000233565b955050604087015181811115620003da57600080fd5b8701601f81018913620003ec57600080fd5b8051620003fd6200031382620002c8565b81815260059190911b8201840190848101908b8311156200041d57600080fd5b928501925b82841015620004545783516001600160a01b0381168114620004445760008081fd5b8252928501929085019062000422565b60608b01519097509450505050808211156200046f57600080fd5b506200047e87828801620002ee565b91505092959194509250565b604080825283519082018190526000906020906060840190828701845b82811015620004ce5781516001600160a01b031684529284019290840190600101620004a7565b5050508381038285015284518082528583019183019060005b818110156200050557835183529284019291840191600101620004e7565b5090979650505050505050565b600181811c908216806200052757607f821691505b602082108114156200054957634e487b7160e01b600052602260045260246000fd5b50919050565b60805161335562000572600039600081816103cc015261086301526133556000f3fe6080604052600436106101e25760003560e01c8063869f759411610102578063cdcd897e11610095578063e985e9c511610064578063e985e9c514610641578063f242432a1461068a578063f2fde38b146106aa578063f5298aca146106ca57600080fd5b8063cdcd897e146105c6578063d9caed12146105dc578063e6a72acf146105fc578063e8a3d4851461062c57600080fd5b8063bd85b039116100d1578063bd85b0391461051e578063c30f4a5a1461054b578063c8def0b41461056b578063cc33c8751461058b57600080fd5b8063869f7594146104865780638da5cb5b146104b357806395d89b41146104d1578063a22cb465146104fe57600080fd5b80634e1273f41161017a5780635c975abb116101495780635c975abb146104265780636b20c4541461043e5780636c0255721461045e578063715018a61461047157600080fd5b80634e1273f41461035a5780634f558e791461038757806350fe03f6146103ba57806351cff8d91461040657600080fd5b8063156e29f6116101b6578063156e29f6146102b95780632a55205a146102db5780632eb2c2d61461031a57806347fda41a1461033a57600080fd5b8062fdd58e146101e757806301ffc9a71461021a57806306fdde031461024a5780630e89341c14610299575b600080fd5b3480156101f357600080fd5b50610207610202366004612664565b6106ea565b6040519081526020015b60405180910390f35b34801561022657600080fd5b5061023a6102353660046126a6565b610783565b6040519015158152602001610211565b34801561025657600080fd5b5060408051808201909152601c81527f546865204c6567616379206f6620506f6c204d6564696e61204a722e0000000060208201525b604051610211919061271b565b3480156102a557600080fd5b5061028c6102b436600461272e565b6107b5565b3480156102c557600080fd5b506102d96102d4366004612747565b610824565b005b3480156102e757600080fd5b506102fb6102f636600461277c565b61085e565b604080516001600160a01b039093168352602083019190915201610211565b34801561032657600080fd5b506102d96103353660046128f4565b6108a7565b34801561034657600080fd5b5061020761035536600461272e565b61093e565b34801561036657600080fd5b5061037a6103753660046129a2565b61098b565b6040516102119190612aaa565b34801561039357600080fd5b5061023a6103a236600461272e565b60009081526007602052604090206002015460ff1690565b3480156103c657600080fd5b506103ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610211565b34801561041257600080fd5b506102d9610421366004612abd565b610ab5565b34801561043257600080fd5b5060055460ff1661023a565b34801561044a57600080fd5b506102d9610459366004612ada565b610b30565b6102d961046c366004612b50565b610b73565b34801561047d57600080fd5b506102d9610cd0565b34801561049257600080fd5b506102076104a136600461272e565b60009081526007602052604090205490565b3480156104bf57600080fd5b506000546001600160a01b03166103ee565b3480156104dd57600080fd5b506040805180820190915260048152632826a52960e11b602082015261028c565b34801561050a57600080fd5b506102d9610519366004612bc1565b610d06565b34801561052a57600080fd5b5061020761053936600461272e565b60009081526006602052604090205490565b34801561055757600080fd5b506102d9610566366004612bfa565b610d37565b34801561057757600080fd5b506102d9610586366004612c43565b610d6d565b34801561059757600080fd5b506105ab6105a636600461272e565b610dfe565b60408051938452602084019290925290820152606001610211565b3480156105d257600080fd5b506102076103e881565b3480156105e857600080fd5b506102d96105f7366004612c8a565b610e2e565b34801561060857600080fd5b5061020761061736600461272e565b60009081526007602052604090206001015490565b34801561063857600080fd5b5061028c610e94565b34801561064d57600080fd5b5061023a61065c366004612ccb565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561069657600080fd5b506102d96106a5366004612cf9565b610f26565b3480156106b657600080fd5b506102d96106c5366004612abd565b610f6b565b3480156106d657600080fd5b506102d96106e5366004612747565b611003565b60006001600160a01b03831661075b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526002602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b14156107a657506001919050565b6107af82611046565b92915050565b60008181526007602052604090206002015460609060ff161561080b576107db82611096565b6107e48361112a565b6040516020016107f5929190612d62565b6040516020818303038152906040529050919050565b61081482611096565b6040516020016107f59190612db0565b6000546001600160a01b0316331461084e5760405162461bcd60e51b815260040161075290612dde565b610859838383611230565b505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006127106108916103e886612e29565b61089b9190612e5e565b915091505b9250929050565b6001600160a01b0385163314806108c357506108c3853361065c565b61092a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610752565b61093785858585856112d4565b5050505050565b6000818152600760205260408120548061096b5760405163f9324a6960e01b815260040160405180910390fd5b6000838152600660205260409020546109849082612e72565b9392505050565b606081518351146109f05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610752565b6000835167ffffffffffffffff811115610a0c57610a0c61279e565b604051908082528060200260200182016040528015610a35578160200160208202803683370190505b50905060005b8451811015610aad57610a80858281518110610a5957610a59612e89565b6020026020010151858381518110610a7357610a73612e89565b60200260200101516106ea565b828281518110610a9257610a92612e89565b6020908102919091010152610aa681612e9f565b9050610a3b565b509392505050565b60026001541415610ad85760405162461bcd60e51b815260040161075290612eba565b60026001556000546001600160a01b03163314610b075760405162461bcd60e51b815260040161075290612dde565b60095460ff16610b1f576009805460ff191660011790555b610b298147611481565b5060018055565b6001600160a01b038316331480610b4c5750610b4c833361065c565b610b685760405162461bcd60e51b815260040161075290612ef1565b61085983838361159a565b60026001541415610b965760405162461bcd60e51b815260040161075290612eba565b600260015560005460405169185d5d1a1bdc9a5e995960b21b60208201526bffffffffffffffffffffffff19606087901b16602a8201526001600160a01b0390911690610c4a90610c4490603e0160408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b8361172b565b6001600160a01b031614610c715760405163201dc6f560e01b815260040160405180910390fd5b600083815260076020526040812060010154610c8e908490612e29565b9050801580610c9c57508034105b15610cba5760405163201dc6f560e01b815260040160405180910390fd5b610cc5858585611230565b505060018055505050565b6000546001600160a01b03163314610cfa5760405162461bcd60e51b815260040161075290612dde565b610d046000611747565b565b60095460ff16610d29576040516303e7c1bd60e31b815260040160405180910390fd5b610d338282611797565b5050565b6000546001600160a01b03163314610d615760405162461bcd60e51b815260040161075290612dde565b610d6a816117a2565b50565b6000546001600160a01b03163314610d975760405162461bcd60e51b815260040161075290612dde565b604080516060810182528481526020808201858152600183850181815260008a815260079094529490922092518355519082015590516002909101805460ff191691151591909117905560ff811615610df857610df833858360ff16611230565b50505050565b6000818152600760205260408120805460019091015482918291610e218661093e565b9250925092509193909250565b60026001541415610e515760405162461bcd60e51b815260040161075290612eba565b60026001556000546001600160a01b03163314610e805760405162461bcd60e51b815260040161075290612dde565b610e8b8383836117b5565b50506001805550565b606060088054610ea390612f3a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecf90612f3a565b8015610f1c5780601f10610ef157610100808354040283529160200191610f1c565b820191906000526020600020905b815481529060010190602001808311610eff57829003601f168201915b5050505050905090565b6001600160a01b038516331480610f425750610f42853361065c565b610f5e5760405162461bcd60e51b815260040161075290612ef1565b6109378585858585611807565b6000546001600160a01b03163314610f955760405162461bcd60e51b815260040161075290612dde565b6001600160a01b038116610ffa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610752565b610d6a81611747565b6001600160a01b03831633148061101f575061101f833361065c565b61103b5760405162461bcd60e51b815260040161075290612ef1565b610859838383611937565b60006001600160e01b03198216636cdb3d1360e11b148061107757506001600160e01b031982166303a24d0760e21b145b806107af57506301ffc9a760e01b6001600160e01b03198316146107af565b6060600480546110a590612f3a565b80601f01602080910402602001604051908101604052809291908181526020018280546110d190612f3a565b801561111e5780601f106110f35761010080835404028352916020019161111e565b820191906000526020600020905b81548152906001019060200180831161110157829003601f168201915b50505050509050919050565b60608161114e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611178578061116281612e9f565b91506111719050600a83612e5e565b9150611152565b60008167ffffffffffffffff8111156111935761119361279e565b6040519080825280601f01601f1916602001820160405280156111bd576020820181803683370190505b5090505b8415611228576111d2600183612e72565b91506111df600a86612f75565b6111ea906030612f89565b60f81b8183815181106111ff576111ff612e89565b60200101906001600160f81b031916908160001a905350611221600a86612e5e565b94506111c1565b949350505050565b60008281526007602052604090206002015460ff166112625760405163201dc6f560e01b815260040160405180910390fd5b600082815260076020908152604080832054600690925282205490919061128a908490612f89565b905060008211801561129b57508181115b156112b95760405163201dc6f560e01b815260040160405180910390fd5b61093785858560405180602001604052806000815250611a3c565b81518351146112f55760405162461bcd60e51b815260040161075290612fa1565b6001600160a01b03841661131b5760405162461bcd60e51b815260040161075290612fe9565b3361132a818787878787611b3f565b60005b845181101561141357600085828151811061134a5761134a612e89565b60200260200101519050600085838151811061136857611368612e89565b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156113b95760405162461bcd60e51b81526004016107529061302e565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906113f8908490612f89565b925050819055505050508061140c90612e9f565b905061132d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611463929190613078565b60405180910390a4611479818787878787611b4d565b505050505050565b804710156114d15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610752565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461151e576040519150601f19603f3d011682016040523d82523d6000602084013e611523565b606091505b50509050806108595760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610752565b6001600160a01b0383166115c05760405162461bcd60e51b8152600401610752906130a6565b80518251146115e15760405162461bcd60e51b815260040161075290612fa1565b600033905061160481856000868660405180602001604052806000815250611b3f565b60005b83518110156116cc57600084828151811061162457611624612e89565b60200260200101519050600084838151811061164257611642612e89565b60209081029190910181015160008481526002835260408082206001600160a01b038c1683529093529190912054909150818110156116935760405162461bcd60e51b8152600401610752906130e9565b60009283526002602090815260408085206001600160a01b038b16865290915290922091039055806116c481612e9f565b915050611607565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161171d929190613078565b60405180910390a450505050565b600080600061173a8585611cb8565b91509150610aad81611d25565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610d33338383611ee0565b8051610d339060049060208401906125b6565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610859908490611fc1565b6001600160a01b03841661182d5760405162461bcd60e51b815260040161075290612fe9565b3361184c81878761183d88612093565b61184688612093565b87611b3f565b60008481526002602090815260408083206001600160a01b038a1684529091529020548381101561188f5760405162461bcd60e51b81526004016107529061302e565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906118ce908490612f89565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461192e8288888888886120de565b50505050505050565b6001600160a01b03831661195d5760405162461bcd60e51b8152600401610752906130a6565b3361198c8185600061196e87612093565b61197787612093565b60405180602001604052806000815250611b3f565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156119cf5760405162461bcd60e51b8152600401610752906130e9565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416611a9c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610752565b33611aad8160008761183d88612093565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611adf908490612f89565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610937816000878787876120de565b6114798686868686866121a8565b6001600160a01b0384163b156114795760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b91908990899088908890889060040161312d565b602060405180830381600087803b158015611bab57600080fd5b505af1925050508015611bdb575060408051601f3d908101601f19168201909252611bd89181019061318b565b60015b611c8857611be76131a8565b806308c379a01415611c215750611bfc6131c4565b80611c075750611c23565b8060405162461bcd60e51b8152600401610752919061271b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610752565b6001600160e01b0319811663bc197c8160e01b1461192e5760405162461bcd60e51b81526004016107529061324e565b600080825160411415611cef5760208301516040840151606085015160001a611ce3878285856122c2565b945094505050506108a0565b825160401415611d195760208301516040840151611d0e8683836123af565b9350935050506108a0565b506000905060026108a0565b6000816004811115611d3957611d39613296565b1415611d425750565b6001816004811115611d5657611d56613296565b1415611da45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610752565b6002816004811115611db857611db8613296565b1415611e065760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610752565b6003816004811115611e1a57611e1a613296565b1415611e735760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610752565b6004816004811115611e8757611e87613296565b1415610d6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610752565b816001600160a01b0316836001600160a01b03161415611f545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610752565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612016826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123de9092919063ffffffff16565b805190915015610859578080602001905181019061203491906132ac565b6108595760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610752565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106120cd576120cd612e89565b602090810291909101015292915050565b6001600160a01b0384163b156114795760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061212290899089908890889088906004016132c9565b602060405180830381600087803b15801561213c57600080fd5b505af192505050801561216c575060408051601f3d908101601f191682019092526121699181019061318b565b60015b61217857611be76131a8565b6001600160e01b0319811663f23a6e6160e01b1461192e5760405162461bcd60e51b81526004016107529061324e565b6121b68686868686866123ed565b6001600160a01b03851661223d5760005b835181101561223b578281815181106121e2576121e2612e89565b60200260200101516006600086848151811061220057612200612e89565b6020026020010151815260200190815260200160002060008282546122259190612f89565b90915550612234905081612e9f565b90506121c7565b505b6001600160a01b0384166114795760005b835181101561192e5782818151811061226957612269612e89565b60200260200101516006600086848151811061228757612287612e89565b6020026020010151815260200190815260200160002060008282546122ac9190612e72565b909155506122bb905081612e9f565b905061224e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156122f957506000905060036123a6565b8460ff16601b1415801561231157508460ff16601c14155b1561232257506000905060046123a6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612376573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661239f576000600192509250506123a6565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016123d0878288856122c2565b935093505050935093915050565b60606112288484600085612455565b60055460ff16156114795760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610752565b6060824710156124b65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610752565b843b6125045760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610752565b600080866001600160a01b031685876040516125209190613303565b60006040518083038185875af1925050503d806000811461255d576040519150601f19603f3d011682016040523d82523d6000602084013e612562565b606091505b509150915061257282828661257d565b979650505050505050565b6060831561258c575081610984565b82511561259c5782518084602001fd5b8160405162461bcd60e51b8152600401610752919061271b565b8280546125c290612f3a565b90600052602060002090601f0160209004810192826125e4576000855561262a565b82601f106125fd57805160ff191683800117855561262a565b8280016001018555821561262a579182015b8281111561262a57825182559160200191906001019061260f565b5061263692915061263a565b5090565b5b80821115612636576000815560010161263b565b6001600160a01b0381168114610d6a57600080fd5b6000806040838503121561267757600080fd5b82356126828161264f565b946020939093013593505050565b6001600160e01b031981168114610d6a57600080fd5b6000602082840312156126b857600080fd5b813561098481612690565b60005b838110156126de5781810151838201526020016126c6565b83811115610df85750506000910152565b600081518084526127078160208601602086016126c3565b601f01601f19169290920160200192915050565b60208152600061098460208301846126ef565b60006020828403121561274057600080fd5b5035919050565b60008060006060848603121561275c57600080fd5b83356127678161264f565b95602085013595506040909401359392505050565b6000806040838503121561278f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156127da576127da61279e565b6040525050565b600067ffffffffffffffff8211156127fb576127fb61279e565b5060051b60200190565b600082601f83011261281657600080fd5b81356020612823826127e1565b60405161283082826127b4565b83815260059390931b850182019282810191508684111561285057600080fd5b8286015b8481101561286b5780358352918301918301612854565b509695505050505050565b600067ffffffffffffffff8311156128905761289061279e565b6040516128a7601f8501601f1916602001826127b4565b8091508381528484840111156128bc57600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126128e557600080fd5b61098483833560208501612876565b600080600080600060a0868803121561290c57600080fd5b85356129178161264f565b945060208601356129278161264f565b9350604086013567ffffffffffffffff8082111561294457600080fd5b61295089838a01612805565b9450606088013591508082111561296657600080fd5b61297289838a01612805565b9350608088013591508082111561298857600080fd5b50612995888289016128d4565b9150509295509295909350565b600080604083850312156129b557600080fd5b823567ffffffffffffffff808211156129cd57600080fd5b818501915085601f8301126129e157600080fd5b813560206129ee826127e1565b6040516129fb82826127b4565b83815260059390931b8501820192828101915089841115612a1b57600080fd5b948201945b83861015612a42578535612a338161264f565b82529482019490820190612a20565b96505086013592505080821115612a5857600080fd5b50612a6585828601612805565b9150509250929050565b600081518084526020808501945080840160005b83811015612a9f57815187529582019590820190600101612a83565b509495945050505050565b6020815260006109846020830184612a6f565b600060208284031215612acf57600080fd5b81356109848161264f565b600080600060608486031215612aef57600080fd5b8335612afa8161264f565b9250602084013567ffffffffffffffff80821115612b1757600080fd5b612b2387838801612805565b93506040860135915080821115612b3957600080fd5b50612b4686828701612805565b9150509250925092565b60008060008060808587031215612b6657600080fd5b8435612b718161264f565b93506020850135925060408501359150606085013567ffffffffffffffff811115612b9b57600080fd5b612ba7878288016128d4565b91505092959194509250565b8015158114610d6a57600080fd5b60008060408385031215612bd457600080fd5b8235612bdf8161264f565b91506020830135612bef81612bb3565b809150509250929050565b600060208284031215612c0c57600080fd5b813567ffffffffffffffff811115612c2357600080fd5b8201601f81018413612c3457600080fd5b61122884823560208401612876565b60008060008060808587031215612c5957600080fd5b843593506020850135925060408501359150606085013560ff81168114612c7f57600080fd5b939692955090935050565b600080600060608486031215612c9f57600080fd5b8335612caa8161264f565b92506020840135612cba8161264f565b929592945050506040919091013590565b60008060408385031215612cde57600080fd5b8235612ce98161264f565b91506020830135612bef8161264f565b600080600080600060a08688031215612d1157600080fd5b8535612d1c8161264f565b94506020860135612d2c8161264f565b93506040860135925060608601359150608086013567ffffffffffffffff811115612d5657600080fd5b612995888289016128d4565b60008351612d748184602088016126c3565b602f60f81b9083019081528351612d928160018401602088016126c3565b64173539b7b760d91b60019290910191820152600601949350505050565b60008251612dc28184602087016126c3565b6917bdb4b23e973539b7b760b11b920191825250600a01919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612e4357612e43612e13565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612e6d57612e6d612e48565b500490565b600082821015612e8457612e84612e13565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612eb357612eb3612e13565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600181811c90821680612f4e57607f821691505b60208210811415612f6f57634e487b7160e01b600052602260045260246000fd5b50919050565b600082612f8457612f84612e48565b500690565b60008219821115612f9c57612f9c612e13565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061308b6040830185612a6f565b828103602084015261309d8185612a6f565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061315990830186612a6f565b828103606084015261316b8186612a6f565b9050828103608084015261317f81856126ef565b98975050505050505050565b60006020828403121561319d57600080fd5b815161098481612690565b600060033d11156131c15760046000803e5060005160e01c5b90565b600060443d10156131d25790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561320257505050505090565b828501915081518181111561321a5750505050505090565b843d87010160208285010111156132345750505050505090565b613243602082860101876127b4565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6000602082840312156132be57600080fd5b815161098481612bb3565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612572908301846126ef565b600082516133158184602087016126c3565b919091019291505056fea26469706673582212207a92089c38ae31808bb61fc8b6fb1bc030b8ec960f28023e26e108fe16866baf64736f6c634300080900336080604052604051620011623803806200116283398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b50505062000571565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000556565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200054f576200054f62000522565b5060010190565b600082198211156200056c576200056c62000522565b500190565b610be180620005816000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f3366004610955565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610972565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610972565b6103aa565b34801561019057600080fd5b506101a461019f3660046109ab565b610592565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d7366004610955565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d366004610955565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b610243366004610955565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a8906109c4565b60405180910390fd5b60006102bc60015490565b6102c69047610a20565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105c2565b9050806103125760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b0383166000908152600360205260408120805483929061033a908490610a20565b9250508190555080600160008282546103539190610a20565b9091555061036390508382610607565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103df5760405162461bcd60e51b81526004016102a8906109c4565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561043757600080fd5b505afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f9190610a83565b6104799190610a20565b905060006104b283836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806104d15760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b03808516600090815260066020908152604080832093871683529290529081208054839290610508908490610a20565b90915550506001600160a01b03841660009081526005602052604081208054839290610535908490610a20565b909155506105469050848483610725565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000600482815481106105a7576105a7610a9c565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105e99086610ab2565b6105f39190610ad1565b6105fd9190610af3565b90505b9392505050565b804710156106575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146106a4576040519150601f19603f3d011682016040523d82523d6000602084013e6106a9565b606091505b50509050806107205760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610720928692916000916107b5918516908490610832565b80519091501561072057808060200190518101906107d39190610b0a565b6107205760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b60606105fd848460008585843b61088b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b031685876040516108a79190610b5c565b60006040518083038185875af1925050503d80600081146108e4576040519150601f19603f3d011682016040523d82523d6000602084013e6108e9565b606091505b50915091506108f9828286610904565b979650505050505050565b60608315610913575081610600565b8251156109235782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610b78565b6001600160a01b038116811461095257600080fd5b50565b60006020828403121561096757600080fd5b81356106008161093d565b6000806040838503121561098557600080fd5b82356109908161093d565b915060208301356109a08161093d565b809150509250929050565b6000602082840312156109bd57600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a3357610a33610a0a565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215610a9557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610acc57610acc610a0a565b500290565b600082610aee57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610b0557610b05610a0a565b500390565b600060208284031215610b1c57600080fd5b8151801515811461060057600080fd5b60005b83811015610b47578181015183820152602001610b2f565b83811115610b56576000848401525b50505050565b60008251610b6e818460208701610b2c565b9190910192915050565b6020815260008251806020840152610b97816040850160208701610b2c565b601f01601f1916919091016040019291505056fea2646970667358221220052ad9fa9a92d7a5413b1f8e3d92b4e1dc33a7d7817e6e4fceb27576ae5d603364736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b726569656c3769666b323277707734326c7270676861723368376e787161627963686275706b35746a6b6c74657471736369616f75767500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f7777772e706f6c6d6564696e616a722e636f6d2f646174612f746f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c742466fd430c852aaa5bbc936933a080b2ad4ab000000000000000000000000594a0c367cddce0a0ac5031834780a72edefa0f7000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032
Deployed Bytecode
0x6080604052600436106101e25760003560e01c8063869f759411610102578063cdcd897e11610095578063e985e9c511610064578063e985e9c514610641578063f242432a1461068a578063f2fde38b146106aa578063f5298aca146106ca57600080fd5b8063cdcd897e146105c6578063d9caed12146105dc578063e6a72acf146105fc578063e8a3d4851461062c57600080fd5b8063bd85b039116100d1578063bd85b0391461051e578063c30f4a5a1461054b578063c8def0b41461056b578063cc33c8751461058b57600080fd5b8063869f7594146104865780638da5cb5b146104b357806395d89b41146104d1578063a22cb465146104fe57600080fd5b80634e1273f41161017a5780635c975abb116101495780635c975abb146104265780636b20c4541461043e5780636c0255721461045e578063715018a61461047157600080fd5b80634e1273f41461035a5780634f558e791461038757806350fe03f6146103ba57806351cff8d91461040657600080fd5b8063156e29f6116101b6578063156e29f6146102b95780632a55205a146102db5780632eb2c2d61461031a57806347fda41a1461033a57600080fd5b8062fdd58e146101e757806301ffc9a71461021a57806306fdde031461024a5780630e89341c14610299575b600080fd5b3480156101f357600080fd5b50610207610202366004612664565b6106ea565b6040519081526020015b60405180910390f35b34801561022657600080fd5b5061023a6102353660046126a6565b610783565b6040519015158152602001610211565b34801561025657600080fd5b5060408051808201909152601c81527f546865204c6567616379206f6620506f6c204d6564696e61204a722e0000000060208201525b604051610211919061271b565b3480156102a557600080fd5b5061028c6102b436600461272e565b6107b5565b3480156102c557600080fd5b506102d96102d4366004612747565b610824565b005b3480156102e757600080fd5b506102fb6102f636600461277c565b61085e565b604080516001600160a01b039093168352602083019190915201610211565b34801561032657600080fd5b506102d96103353660046128f4565b6108a7565b34801561034657600080fd5b5061020761035536600461272e565b61093e565b34801561036657600080fd5b5061037a6103753660046129a2565b61098b565b6040516102119190612aaa565b34801561039357600080fd5b5061023a6103a236600461272e565b60009081526007602052604090206002015460ff1690565b3480156103c657600080fd5b506103ee7f000000000000000000000000ccc42a4700c790c0d6d87562f0192be92234f08481565b6040516001600160a01b039091168152602001610211565b34801561041257600080fd5b506102d9610421366004612abd565b610ab5565b34801561043257600080fd5b5060055460ff1661023a565b34801561044a57600080fd5b506102d9610459366004612ada565b610b30565b6102d961046c366004612b50565b610b73565b34801561047d57600080fd5b506102d9610cd0565b34801561049257600080fd5b506102076104a136600461272e565b60009081526007602052604090205490565b3480156104bf57600080fd5b506000546001600160a01b03166103ee565b3480156104dd57600080fd5b506040805180820190915260048152632826a52960e11b602082015261028c565b34801561050a57600080fd5b506102d9610519366004612bc1565b610d06565b34801561052a57600080fd5b5061020761053936600461272e565b60009081526006602052604090205490565b34801561055757600080fd5b506102d9610566366004612bfa565b610d37565b34801561057757600080fd5b506102d9610586366004612c43565b610d6d565b34801561059757600080fd5b506105ab6105a636600461272e565b610dfe565b60408051938452602084019290925290820152606001610211565b3480156105d257600080fd5b506102076103e881565b3480156105e857600080fd5b506102d96105f7366004612c8a565b610e2e565b34801561060857600080fd5b5061020761061736600461272e565b60009081526007602052604090206001015490565b34801561063857600080fd5b5061028c610e94565b34801561064d57600080fd5b5061023a61065c366004612ccb565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561069657600080fd5b506102d96106a5366004612cf9565b610f26565b3480156106b657600080fd5b506102d96106c5366004612abd565b610f6b565b3480156106d657600080fd5b506102d96106e5366004612747565b611003565b60006001600160a01b03831661075b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526002602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b14156107a657506001919050565b6107af82611046565b92915050565b60008181526007602052604090206002015460609060ff161561080b576107db82611096565b6107e48361112a565b6040516020016107f5929190612d62565b6040516020818303038152906040529050919050565b61081482611096565b6040516020016107f59190612db0565b6000546001600160a01b0316331461084e5760405162461bcd60e51b815260040161075290612dde565b610859838383611230565b505050565b6000807f000000000000000000000000ccc42a4700c790c0d6d87562f0192be92234f0846127106108916103e886612e29565b61089b9190612e5e565b915091505b9250929050565b6001600160a01b0385163314806108c357506108c3853361065c565b61092a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610752565b61093785858585856112d4565b5050505050565b6000818152600760205260408120548061096b5760405163f9324a6960e01b815260040160405180910390fd5b6000838152600660205260409020546109849082612e72565b9392505050565b606081518351146109f05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610752565b6000835167ffffffffffffffff811115610a0c57610a0c61279e565b604051908082528060200260200182016040528015610a35578160200160208202803683370190505b50905060005b8451811015610aad57610a80858281518110610a5957610a59612e89565b6020026020010151858381518110610a7357610a73612e89565b60200260200101516106ea565b828281518110610a9257610a92612e89565b6020908102919091010152610aa681612e9f565b9050610a3b565b509392505050565b60026001541415610ad85760405162461bcd60e51b815260040161075290612eba565b60026001556000546001600160a01b03163314610b075760405162461bcd60e51b815260040161075290612dde565b60095460ff16610b1f576009805460ff191660011790555b610b298147611481565b5060018055565b6001600160a01b038316331480610b4c5750610b4c833361065c565b610b685760405162461bcd60e51b815260040161075290612ef1565b61085983838361159a565b60026001541415610b965760405162461bcd60e51b815260040161075290612eba565b600260015560005460405169185d5d1a1bdc9a5e995960b21b60208201526bffffffffffffffffffffffff19606087901b16602a8201526001600160a01b0390911690610c4a90610c4490603e0160408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b8361172b565b6001600160a01b031614610c715760405163201dc6f560e01b815260040160405180910390fd5b600083815260076020526040812060010154610c8e908490612e29565b9050801580610c9c57508034105b15610cba5760405163201dc6f560e01b815260040160405180910390fd5b610cc5858585611230565b505060018055505050565b6000546001600160a01b03163314610cfa5760405162461bcd60e51b815260040161075290612dde565b610d046000611747565b565b60095460ff16610d29576040516303e7c1bd60e31b815260040160405180910390fd5b610d338282611797565b5050565b6000546001600160a01b03163314610d615760405162461bcd60e51b815260040161075290612dde565b610d6a816117a2565b50565b6000546001600160a01b03163314610d975760405162461bcd60e51b815260040161075290612dde565b604080516060810182528481526020808201858152600183850181815260008a815260079094529490922092518355519082015590516002909101805460ff191691151591909117905560ff811615610df857610df833858360ff16611230565b50505050565b6000818152600760205260408120805460019091015482918291610e218661093e565b9250925092509193909250565b60026001541415610e515760405162461bcd60e51b815260040161075290612eba565b60026001556000546001600160a01b03163314610e805760405162461bcd60e51b815260040161075290612dde565b610e8b8383836117b5565b50506001805550565b606060088054610ea390612f3a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecf90612f3a565b8015610f1c5780601f10610ef157610100808354040283529160200191610f1c565b820191906000526020600020905b815481529060010190602001808311610eff57829003601f168201915b5050505050905090565b6001600160a01b038516331480610f425750610f42853361065c565b610f5e5760405162461bcd60e51b815260040161075290612ef1565b6109378585858585611807565b6000546001600160a01b03163314610f955760405162461bcd60e51b815260040161075290612dde565b6001600160a01b038116610ffa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610752565b610d6a81611747565b6001600160a01b03831633148061101f575061101f833361065c565b61103b5760405162461bcd60e51b815260040161075290612ef1565b610859838383611937565b60006001600160e01b03198216636cdb3d1360e11b148061107757506001600160e01b031982166303a24d0760e21b145b806107af57506301ffc9a760e01b6001600160e01b03198316146107af565b6060600480546110a590612f3a565b80601f01602080910402602001604051908101604052809291908181526020018280546110d190612f3a565b801561111e5780601f106110f35761010080835404028352916020019161111e565b820191906000526020600020905b81548152906001019060200180831161110157829003601f168201915b50505050509050919050565b60608161114e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611178578061116281612e9f565b91506111719050600a83612e5e565b9150611152565b60008167ffffffffffffffff8111156111935761119361279e565b6040519080825280601f01601f1916602001820160405280156111bd576020820181803683370190505b5090505b8415611228576111d2600183612e72565b91506111df600a86612f75565b6111ea906030612f89565b60f81b8183815181106111ff576111ff612e89565b60200101906001600160f81b031916908160001a905350611221600a86612e5e565b94506111c1565b949350505050565b60008281526007602052604090206002015460ff166112625760405163201dc6f560e01b815260040160405180910390fd5b600082815260076020908152604080832054600690925282205490919061128a908490612f89565b905060008211801561129b57508181115b156112b95760405163201dc6f560e01b815260040160405180910390fd5b61093785858560405180602001604052806000815250611a3c565b81518351146112f55760405162461bcd60e51b815260040161075290612fa1565b6001600160a01b03841661131b5760405162461bcd60e51b815260040161075290612fe9565b3361132a818787878787611b3f565b60005b845181101561141357600085828151811061134a5761134a612e89565b60200260200101519050600085838151811061136857611368612e89565b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156113b95760405162461bcd60e51b81526004016107529061302e565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906113f8908490612f89565b925050819055505050508061140c90612e9f565b905061132d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611463929190613078565b60405180910390a4611479818787878787611b4d565b505050505050565b804710156114d15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610752565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461151e576040519150601f19603f3d011682016040523d82523d6000602084013e611523565b606091505b50509050806108595760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610752565b6001600160a01b0383166115c05760405162461bcd60e51b8152600401610752906130a6565b80518251146115e15760405162461bcd60e51b815260040161075290612fa1565b600033905061160481856000868660405180602001604052806000815250611b3f565b60005b83518110156116cc57600084828151811061162457611624612e89565b60200260200101519050600084838151811061164257611642612e89565b60209081029190910181015160008481526002835260408082206001600160a01b038c1683529093529190912054909150818110156116935760405162461bcd60e51b8152600401610752906130e9565b60009283526002602090815260408085206001600160a01b038b16865290915290922091039055806116c481612e9f565b915050611607565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161171d929190613078565b60405180910390a450505050565b600080600061173a8585611cb8565b91509150610aad81611d25565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610d33338383611ee0565b8051610d339060049060208401906125b6565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610859908490611fc1565b6001600160a01b03841661182d5760405162461bcd60e51b815260040161075290612fe9565b3361184c81878761183d88612093565b61184688612093565b87611b3f565b60008481526002602090815260408083206001600160a01b038a1684529091529020548381101561188f5760405162461bcd60e51b81526004016107529061302e565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906118ce908490612f89565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461192e8288888888886120de565b50505050505050565b6001600160a01b03831661195d5760405162461bcd60e51b8152600401610752906130a6565b3361198c8185600061196e87612093565b61197787612093565b60405180602001604052806000815250611b3f565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156119cf5760405162461bcd60e51b8152600401610752906130e9565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416611a9c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610752565b33611aad8160008761183d88612093565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611adf908490612f89565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610937816000878787876120de565b6114798686868686866121a8565b6001600160a01b0384163b156114795760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b91908990899088908890889060040161312d565b602060405180830381600087803b158015611bab57600080fd5b505af1925050508015611bdb575060408051601f3d908101601f19168201909252611bd89181019061318b565b60015b611c8857611be76131a8565b806308c379a01415611c215750611bfc6131c4565b80611c075750611c23565b8060405162461bcd60e51b8152600401610752919061271b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610752565b6001600160e01b0319811663bc197c8160e01b1461192e5760405162461bcd60e51b81526004016107529061324e565b600080825160411415611cef5760208301516040840151606085015160001a611ce3878285856122c2565b945094505050506108a0565b825160401415611d195760208301516040840151611d0e8683836123af565b9350935050506108a0565b506000905060026108a0565b6000816004811115611d3957611d39613296565b1415611d425750565b6001816004811115611d5657611d56613296565b1415611da45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610752565b6002816004811115611db857611db8613296565b1415611e065760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610752565b6003816004811115611e1a57611e1a613296565b1415611e735760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610752565b6004816004811115611e8757611e87613296565b1415610d6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610752565b816001600160a01b0316836001600160a01b03161415611f545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610752565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612016826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123de9092919063ffffffff16565b805190915015610859578080602001905181019061203491906132ac565b6108595760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610752565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106120cd576120cd612e89565b602090810291909101015292915050565b6001600160a01b0384163b156114795760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061212290899089908890889088906004016132c9565b602060405180830381600087803b15801561213c57600080fd5b505af192505050801561216c575060408051601f3d908101601f191682019092526121699181019061318b565b60015b61217857611be76131a8565b6001600160e01b0319811663f23a6e6160e01b1461192e5760405162461bcd60e51b81526004016107529061324e565b6121b68686868686866123ed565b6001600160a01b03851661223d5760005b835181101561223b578281815181106121e2576121e2612e89565b60200260200101516006600086848151811061220057612200612e89565b6020026020010151815260200190815260200160002060008282546122259190612f89565b90915550612234905081612e9f565b90506121c7565b505b6001600160a01b0384166114795760005b835181101561192e5782818151811061226957612269612e89565b60200260200101516006600086848151811061228757612287612e89565b6020026020010151815260200190815260200160002060008282546122ac9190612e72565b909155506122bb905081612e9f565b905061224e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156122f957506000905060036123a6565b8460ff16601b1415801561231157508460ff16601c14155b1561232257506000905060046123a6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612376573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661239f576000600192509250506123a6565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016123d0878288856122c2565b935093505050935093915050565b60606112288484600085612455565b60055460ff16156114795760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610752565b6060824710156124b65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610752565b843b6125045760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610752565b600080866001600160a01b031685876040516125209190613303565b60006040518083038185875af1925050503d806000811461255d576040519150601f19603f3d011682016040523d82523d6000602084013e612562565b606091505b509150915061257282828661257d565b979650505050505050565b6060831561258c575081610984565b82511561259c5782518084602001fd5b8160405162461bcd60e51b8152600401610752919061271b565b8280546125c290612f3a565b90600052602060002090601f0160209004810192826125e4576000855561262a565b82601f106125fd57805160ff191683800117855561262a565b8280016001018555821561262a579182015b8281111561262a57825182559160200191906001019061260f565b5061263692915061263a565b5090565b5b80821115612636576000815560010161263b565b6001600160a01b0381168114610d6a57600080fd5b6000806040838503121561267757600080fd5b82356126828161264f565b946020939093013593505050565b6001600160e01b031981168114610d6a57600080fd5b6000602082840312156126b857600080fd5b813561098481612690565b60005b838110156126de5781810151838201526020016126c6565b83811115610df85750506000910152565b600081518084526127078160208601602086016126c3565b601f01601f19169290920160200192915050565b60208152600061098460208301846126ef565b60006020828403121561274057600080fd5b5035919050565b60008060006060848603121561275c57600080fd5b83356127678161264f565b95602085013595506040909401359392505050565b6000806040838503121561278f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156127da576127da61279e565b6040525050565b600067ffffffffffffffff8211156127fb576127fb61279e565b5060051b60200190565b600082601f83011261281657600080fd5b81356020612823826127e1565b60405161283082826127b4565b83815260059390931b850182019282810191508684111561285057600080fd5b8286015b8481101561286b5780358352918301918301612854565b509695505050505050565b600067ffffffffffffffff8311156128905761289061279e565b6040516128a7601f8501601f1916602001826127b4565b8091508381528484840111156128bc57600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126128e557600080fd5b61098483833560208501612876565b600080600080600060a0868803121561290c57600080fd5b85356129178161264f565b945060208601356129278161264f565b9350604086013567ffffffffffffffff8082111561294457600080fd5b61295089838a01612805565b9450606088013591508082111561296657600080fd5b61297289838a01612805565b9350608088013591508082111561298857600080fd5b50612995888289016128d4565b9150509295509295909350565b600080604083850312156129b557600080fd5b823567ffffffffffffffff808211156129cd57600080fd5b818501915085601f8301126129e157600080fd5b813560206129ee826127e1565b6040516129fb82826127b4565b83815260059390931b8501820192828101915089841115612a1b57600080fd5b948201945b83861015612a42578535612a338161264f565b82529482019490820190612a20565b96505086013592505080821115612a5857600080fd5b50612a6585828601612805565b9150509250929050565b600081518084526020808501945080840160005b83811015612a9f57815187529582019590820190600101612a83565b509495945050505050565b6020815260006109846020830184612a6f565b600060208284031215612acf57600080fd5b81356109848161264f565b600080600060608486031215612aef57600080fd5b8335612afa8161264f565b9250602084013567ffffffffffffffff80821115612b1757600080fd5b612b2387838801612805565b93506040860135915080821115612b3957600080fd5b50612b4686828701612805565b9150509250925092565b60008060008060808587031215612b6657600080fd5b8435612b718161264f565b93506020850135925060408501359150606085013567ffffffffffffffff811115612b9b57600080fd5b612ba7878288016128d4565b91505092959194509250565b8015158114610d6a57600080fd5b60008060408385031215612bd457600080fd5b8235612bdf8161264f565b91506020830135612bef81612bb3565b809150509250929050565b600060208284031215612c0c57600080fd5b813567ffffffffffffffff811115612c2357600080fd5b8201601f81018413612c3457600080fd5b61122884823560208401612876565b60008060008060808587031215612c5957600080fd5b843593506020850135925060408501359150606085013560ff81168114612c7f57600080fd5b939692955090935050565b600080600060608486031215612c9f57600080fd5b8335612caa8161264f565b92506020840135612cba8161264f565b929592945050506040919091013590565b60008060408385031215612cde57600080fd5b8235612ce98161264f565b91506020830135612bef8161264f565b600080600080600060a08688031215612d1157600080fd5b8535612d1c8161264f565b94506020860135612d2c8161264f565b93506040860135925060608601359150608086013567ffffffffffffffff811115612d5657600080fd5b612995888289016128d4565b60008351612d748184602088016126c3565b602f60f81b9083019081528351612d928160018401602088016126c3565b64173539b7b760d91b60019290910191820152600601949350505050565b60008251612dc28184602087016126c3565b6917bdb4b23e973539b7b760b11b920191825250600a01919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612e4357612e43612e13565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612e6d57612e6d612e48565b500490565b600082821015612e8457612e84612e13565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612eb357612eb3612e13565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600181811c90821680612f4e57607f821691505b60208210811415612f6f57634e487b7160e01b600052602260045260246000fd5b50919050565b600082612f8457612f84612e48565b500690565b60008219821115612f9c57612f9c612e13565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061308b6040830185612a6f565b828103602084015261309d8185612a6f565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061315990830186612a6f565b828103606084015261316b8186612a6f565b9050828103608084015261317f81856126ef565b98975050505050505050565b60006020828403121561319d57600080fd5b815161098481612690565b600060033d11156131c15760046000803e5060005160e01c5b90565b600060443d10156131d25790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561320257505050505090565b828501915081518181111561321a5750505050505090565b843d87010160208285010111156132345750505050505090565b613243602082860101876127b4565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6000602082840312156132be57600080fd5b815161098481612bb3565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612572908301846126ef565b600082516133158184602087016126c3565b919091019291505056fea26469706673582212207a92089c38ae31808bb61fc8b6fb1bc030b8ec960f28023e26e108fe16866baf64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b726569656c3769666b323277707734326c7270676861723368376e787161627963686275706b35746a6b6c74657471736369616f75767500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f7777772e706f6c6d6564696e616a722e636f6d2f646174612f746f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c742466fd430c852aaa5bbc936933a080b2ad4ab000000000000000000000000594a0c367cddce0a0ac5031834780a72edefa0f7000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032
-----Decoded View---------------
Arg [0] : contract_uri (string): https://ipfs.io/ipfs/bafkreiel7ifk22wpw42lrpghar3h7nxqabychbupk5tjkltetqsciaouvu
Arg [1] : token_uri (string): https://www.polmedinajr.com/data/token
Arg [2] : payees (address[]): 0xc742466fd430c852aaA5bbC936933A080B2ad4aB,0x594A0C367cDdCE0a0AC5031834780A72eDEfa0f7
Arg [3] : shares (uint256[]): 50,50
-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [5] : 68747470733a2f2f697066732e696f2f697066732f6261666b726569656c3769
Arg [6] : 666b323277707734326c7270676861723368376e787161627963686275706b35
Arg [7] : 746a6b6c74657471736369616f75767500000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [9] : 68747470733a2f2f7777772e706f6c6d6564696e616a722e636f6d2f64617461
Arg [10] : 2f746f6b656e0000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [12] : 000000000000000000000000c742466fd430c852aaa5bbc936933a080b2ad4ab
Arg [13] : 000000000000000000000000594a0c367cddce0a0ac5031834780a72edefa0f7
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000032
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.