ERC-1155
Overview
Max Total Supply
888 PraiseGold
Holders
214
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:
PraiseGoldenMembershipCard
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /** * ██████╗ ██████╗ █████╗ ██╗███████╗███████╗ * ██╔══██╗██╔══██╗██╔══██╗██║██╔════╝██╔════╝ * ██████╔╝██████╔╝███████║██║███████╗█████╗ * ██╔═══╝ ██╔══██╗██╔══██║██║╚════██║██╔══╝ * ██║ ██║ ██║██║ ██║██║███████║███████╗ * ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝ * * ██████╗ ██████╗ ██╗ ██████╗ ███████╗███╗ ██╗ * ██╔════╝ ██╔═══██╗██║ ██╔══██╗██╔════╝████╗ ██║ * ██║ ███╗██║ ██║██║ ██║ ██║█████╗ ██╔██╗ ██║ * ██║ ██║██║ ██║██║ ██║ ██║██╔══╝ ██║╚██╗██║ * ╚██████╔╝╚██████╔╝███████╗██████╔╝███████╗██║ ╚████║ * ╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═══╝ * * ███╗ ███╗███████╗███╗ ███╗██████╗ ███████╗██████╗ ███████╗██╗ ██╗██╗██████╗ * ████╗ ████║██╔════╝████╗ ████║██╔══██╗██╔════╝██╔══██╗██╔════╝██║ ██║██║██╔══██╗ * ██╔████╔██║█████╗ ██╔████╔██║██████╔╝█████╗ ██████╔╝███████╗███████║██║██████╔╝ * ██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║██╔══██╗██╔══╝ ██╔══██╗╚════██║██╔══██║██║██╔═══╝ * ██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║██████╔╝███████╗██║ ██║███████║██║ ██║██║██║ * ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝╚═╝ * * ██████╗ █████╗ ██████╗ ██████╗ * ██╔════╝██╔══██╗██╔══██╗██╔══██╗ * ██║ ███████║██████╔╝██║ ██║ * ██║ ██╔══██║██╔══██╗██║ ██║ * ╚██████╗██║ ██║██║ ██║██████╔╝ * ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ */ import "./IPraiseGoldenMembershipCard.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "./token/ERC2981ContractWideRoyalties.sol"; import "./token/TokenRescuer.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /** * @title Praise Golden Membership Card * @author Aaron Hanson <[email protected]> @CoffeeConverter */ contract PraiseGoldenMembershipCard is IPraiseGoldenMembershipCard, ERC1155, ERC2981ContractWideRoyalties, TokenRescuer { /// The maximum token supply. uint256 public constant MAX_SUPPLY = 888; /// The maximum number of minted tokens per address. uint256 public constant MAX_USER_MINT = 2; /// The maximum ERC-2981 royalties percentage (two decimals). uint256 public constant MAX_ROYALTIES_PCT = 1000; // 10% /// The token name. string public name; /// The token symbol. string public symbol; /// The current token supply. uint256 public totalSupply; /// The contract URI for contract-level metadata. string public contractURI; /// The token sale state (0=Paused, 1=Open). SaleState public saleState; /// The address of the OpenSea proxy registry contract. address public proxyRegistry; /// The address which signs the mint coupons. address public couponSigner; /// Whether an address has revoked the automatic OpenSea proxy approval. mapping(address => bool) public userRevokedRegistryApproval; /// The total tokens minted by an address. mapping(address => uint256) public userMinted; /// Reverts if the current sale state is not `_saleState`. modifier onlyInSaleState(SaleState _saleState) { if (saleState != _saleState) revert SalePhaseNotActive(); _; } /// Reverts if the signature is invalid. modifier onlyWithValidSignature( bytes calldata _signature, SaleState _saleState ) { if (!isValidSignature( _signature, _msgSender(), _saleState, block.chainid )) revert InvalidSignature(); _; } constructor( string memory _name, string memory _symbol, address _couponSigner, string memory _contractURI, string memory _baseURI, address _proxyRegistry, address _royaltiesReceiver, uint256 _royaltiesPercent ) ERC1155(_baseURI) { name = _name; symbol = _symbol; couponSigner = _couponSigner; contractURI = _contractURI; proxyRegistry = _proxyRegistry; setRoyalties( _royaltiesReceiver, _royaltiesPercent ); } /** * @notice Mints `_mintAmount` tokens if the signature is valid. * @param _mintAmount The number of tokens to mint. * @param _signature The signature to be verified. */ function mint( uint256 _mintAmount, bytes calldata _signature ) external onlyInSaleState(SaleState.Open) onlyWithValidSignature(_signature, SaleState.Open) { unchecked { userMinted[_msgSender()] += _mintAmount; } if (userMinted[_msgSender()] > MAX_USER_MINT) revert ExceedsMintPhaseAllocation(); _doMint(_mintAmount); } /** * @notice Revokes the automatic approval of the caller's OpenSea proxy. */ function revokeRegistryApproval() external { if (userRevokedRegistryApproval[_msgSender()]) revert AlreadyRevokedRegistryApproval(); userRevokedRegistryApproval[_msgSender()] = true; } /** * @notice (only owner) Mints `_mintAmount` tokens. * @param _mintAmount The number of tokens to mint. */ function mintPromo( uint256 _mintAmount ) external onlyOwner { _doMint(_mintAmount); } /** * @notice (only owner) Sets the saleState to `_newSaleState`. * @param _newSaleState The new sale state * (0=Paused, 1=Open). */ function setSaleState( SaleState _newSaleState ) external onlyOwner { saleState = _newSaleState; emit SaleStateChanged(_newSaleState); } /** * @notice (only owner) Sets the OpenSea proxy registry contract address. * @param _newProxyRegistry The OpenSea proxy registry contract address. */ function setProxyRegistry( address _newProxyRegistry ) external onlyOwner { proxyRegistry = _newProxyRegistry; } /** * @notice (only owner) Sets the coupon signer address. * @param _newCouponSigner The new coupon signer address. */ function setCouponSigner( address _newCouponSigner ) external onlyOwner { couponSigner = _newCouponSigner; } /** * @notice (only owner) Sets the contract URI for contract metadata. * @param _newContractURI The new contract URI. */ function setContractURI( string calldata _newContractURI ) external onlyOwner { contractURI = _newContractURI; } /** * @notice (only owner) Sets the token URI for token metadata. * @param _newURI The new URI. */ function setURI( string calldata _newURI ) external onlyOwner { _setURI(_newURI); } /** * @notice (only owner) Sets ERC-2981 royalties recipient and percentage. * @param _recipient The address to which to send royalties. * @param _value The royalties percentage (two decimals, e.g. 1000 = 10%). */ function setRoyalties( address _recipient, uint256 _value ) public onlyOwner { if (_value > MAX_ROYALTIES_PCT) revert ExceedsMaxRoyaltiesPercentage(); _setRoyalties( _recipient, _value ); } /** * @notice Checks if `_operator` can transfer tokens owned by `_owner`. * @param _owner The address that may own tokens. * @param _operator The address that would transfer tokens of `_owner`. * @return True if `_operator` can transfer tokens of `_owner`, else false. */ function isApprovedForAll( address _owner, address _operator ) public view override returns (bool) { if (!userRevokedRegistryApproval[_owner]) { OpenSeaProxyRegistry reg = OpenSeaProxyRegistry(proxyRegistry); if (address(reg.proxies(_owner)) == _operator) return true; } return super.isApprovedForAll(_owner, _operator); } /** * @inheritdoc ERC165 */ function supportsInterface( bytes4 _interfaceId ) public view override (ERC1155, ERC2981Base) returns (bool) { return super.supportsInterface(_interfaceId); } /** * @notice Checks validity of the signature, sender, and saleState. * @param _signature The signature to be verified. * @param _sender The address part of the signed message. * @param _saleState The saleState part of the signed message. * @param _chainId The chain ID part of the signed message. */ function isValidSignature( bytes calldata _signature, address _sender, SaleState _saleState, uint256 _chainId ) public view returns (bool) { bytes32 hash = ECDSA.toEthSignedMessageHash( keccak256( abi.encodePacked( _sender, _saleState, _chainId ) ) ); return couponSigner == ECDSA.recover(hash, _signature); } /** * @notice Mints `_mintAmount` tokens to the caller. * @param _mintAmount The number of tokens to mint. */ function _doMint( uint256 _mintAmount ) internal { unchecked { totalSupply += _mintAmount; } if (totalSupply > MAX_SUPPLY) revert ExceedsMaxSupply(); _mint(_msgSender(), 0, _mintAmount, ""); } } /// Stub for OpenSea's per-user-address proxy contract. contract OwnableDelegateProxy {} /// Stub for OpenSea's proxy registry contract. contract OpenSeaProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; interface IPraiseGoldenMembershipCard { enum SaleState { Paused, // 0 Open // 1 } event SaleStateChanged( SaleState newSaleState ); error AlreadyRevokedRegistryApproval(); error ExceedsMaxRoyaltiesPercentage(); error ExceedsMaxSupply(); error ExceedsMintPhaseAllocation(); error InvalidSignature(); error SalePhaseNotActive(); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity ^0.8.9; import "./ERC2981Base.sol"; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 /// @dev This implementation has the same royalties for each and every tokens abstract contract ERC2981ContractWideRoyalties is ERC2981Base { RoyaltyInfo private _royalties; /// @dev Sets token royalties /// @param _recipient recipient of the royalties /// @param _value percentage (using 2 decimals - 10000 = 100, 0 = 0) function _setRoyalties( address _recipient, uint256 _value ) internal { // unneeded since the derived contract has a lower _value limit // require(_value <= 10000, "ERC2981Royalties: Too high"); _royalties = RoyaltyInfo(_recipient, uint24(_value)); } /// @inheritdoc IERC2981Royalties function royaltyInfo( uint256, uint256 _value ) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (_value * royalties.amount) / 10000; } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./IStuckTokens.sol"; import "./SafeERC20.sol"; import "../utils/Ownable.sol"; error ArrayLengthMismatch(); /** * @title Token Rescuer * @notice Allows owner to transfer out any tokens accidentally sent in. * @author Aaron Hanson <[email protected]> @CoffeeConverter */ contract TokenRescuer is Ownable { using SafeERC20 for IStuckERC20; /** * @notice Transfers a set of ERC20 `_token` amounts to a set of receivers. * @param _token The contract address of the token to be transferred. * @param _receivers An array of addresses to receive the tokens. * @param _amounts An array of token amounts to transfer to each receiver. */ function rescueBatchERC20( address _token, address[] calldata _receivers, uint256[] calldata _amounts ) external onlyOwner { if (_receivers.length != _amounts.length) revert ArrayLengthMismatch(); unchecked { for (uint i; i < _receivers.length; i += 1) { _rescueERC20(_token, _receivers[i], _amounts[i]); } } } /** * @notice Transfers an ERC20 `_token` amount to a single receiver. * @param _token The contract address of the token to be transferred. * @param _receiver The address to receive the tokens. * @param _amount The token amount to transfer to the receiver. */ function rescueERC20( address _token, address _receiver, uint256 _amount ) external onlyOwner { _rescueERC20(_token, _receiver, _amount); } /** * @notice Transfers sets of ERC721 `_token` IDs to a set of receivers. * @param _token The contract address of the token to be transferred. * @param _receivers An array of addresses to receive the tokens. * @param _tokenIDs Arrays of token IDs to transfer to each receiver. */ function rescueBatchERC721( address _token, address[] calldata _receivers, uint256[][] calldata _tokenIDs ) external onlyOwner { if (_receivers.length != _tokenIDs.length) revert ArrayLengthMismatch(); unchecked { for (uint i; i < _receivers.length; i += 1) { uint256[] memory tokenIDs = _tokenIDs[i]; for (uint j; j < tokenIDs.length; j += 1) { _rescueERC721(_token, _receivers[i], tokenIDs[j]); } } } } /** * @notice Transfers a single ERC721 `_token` token to a single receiver. * @param _token The contract address of the token to be transferred. * @param _receiver The address to receive the token. * @param _tokenID The token ID to transfer to the receiver. */ function rescueERC721( address _token, address _receiver, uint256 _tokenID ) external onlyOwner { _rescueERC721(_token, _receiver, _tokenID); } function _rescueERC20( address _token, address _receiver, uint256 _amount ) private { IStuckERC20(_token).safeTransfer(_receiver, _amount); } function _rescueERC721( address _token, address _receiver, uint256 _tokenID ) private { IStuckERC721(_token).safeTransferFrom( address(this), _receiver, _tokenID ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 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.1 (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 (last updated v4.5.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. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (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 pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./IERC2981Royalties.sol"; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 abstract contract ERC2981Base is ERC165, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty /// is owed and to whom. /// @param _tokenId The NFT asset queried for royalty information /// @param _value The sale price of the NFT asset specified by _tokenId /// @return _receiver Address of who should be sent the royalty payment /// @return _royaltyAmount The royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; interface IStuckERC20 { function transfer( address to, uint256 amount ) external returns (bool); } interface IStuckERC721 { function safeTransferFrom( address from, address to, uint256 tokenId ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "./IStuckTokens.sol"; import "@openzeppelin/contracts/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( IStuckERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @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(IStuckERC20 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 // Based on OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) // With renounceOwnership() removed pragma solidity ^0.8.12; import "@openzeppelin/contracts/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 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.1 (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); } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "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":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_couponSigner","type":"address"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_proxyRegistry","type":"address"},{"internalType":"address","name":"_royaltiesReceiver","type":"address"},{"internalType":"uint256","name":"_royaltiesPercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyRevokedRegistryApproval","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"ExceedsMaxRoyaltiesPercentage","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"ExceedsMintPhaseAllocation","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"SalePhaseNotActive","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":"enum IPraiseGoldenMembershipCard.SaleState","name":"newSaleState","type":"uint8"}],"name":"SaleStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"MAX_ROYALTIES_PCT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_USER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"couponSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"},{"internalType":"enum IPraiseGoldenMembershipCard.SaleState","name":"_saleState","type":"uint8"},{"internalType":"uint256","name":"_chainId","type":"uint256"}],"name":"isValidSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPromo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"rescueBatchERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[][]","name":"_tokenIDs","type":"uint256[][]"}],"name":"rescueBatchERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"rescueERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeRegistryApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_value","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":[],"name":"saleState","outputs":[{"internalType":"enum IPraiseGoldenMembershipCard.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newCouponSigner","type":"address"}],"name":"setCouponSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProxyRegistry","type":"address"}],"name":"setProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IPraiseGoldenMembershipCard.SaleState","name":"_newSaleState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRevokedRegistryApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003caa38038062003caa8339810160408190526200003491620003a9565b836200004081620000e3565b506200004c33620000fc565b8751620000619060059060208b019062000219565b508651620000779060069060208a019062000219565b50600a80546001600160a01b0319166001600160a01b0388161790558451620000a890600890602088019062000219565b5060098054610100600160a81b0319166101006001600160a01b03861602179055620000d582826200014e565b5050505050505050620004e1565b8051620000f890600290602084019062000219565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6004546001600160a01b03163314620001ad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6103e8811115620001d1576040516303e231b960e01b815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600380546001600160b81b031916909117600160a01b9092029190911790555050565b8280546200022790620004a4565b90600052602060002090601f0160209004810192826200024b576000855562000296565b82601f106200026657805160ff191683800117855562000296565b8280016001018555821562000296579182015b828111156200029657825182559160200191906001019062000279565b50620002a4929150620002a8565b5090565b5b80821115620002a45760008155600101620002a9565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002e757600080fd5b81516001600160401b0380821115620003045762000304620002bf565b604051601f8301601f19908116603f011681019082821181831017156200032f576200032f620002bf565b816040528381526020925086838588010111156200034c57600080fd5b600091505b8382101562000370578582018301518183018401529082019062000351565b83821115620003825760008385830101525b9695505050505050565b80516001600160a01b0381168114620003a457600080fd5b919050565b600080600080600080600080610100898b031215620003c757600080fd5b88516001600160401b0380821115620003df57600080fd5b620003ed8c838d01620002d5565b995060208b01519150808211156200040457600080fd5b620004128c838d01620002d5565b98506200042260408c016200038c565b975060608b01519150808211156200043957600080fd5b620004478c838d01620002d5565b965060808b01519150808211156200045e57600080fd5b506200046d8b828c01620002d5565b9450506200047e60a08a016200038c565b92506200048e60c08a016200038c565b915060e089015190509295985092959890939650565b600181811c90821680620004b957607f821691505b60208210811415620004db57634e487b7160e01b600052602260045260246000fd5b50919050565b6137b980620004f16000396000f3fe608060405234801561001057600080fd5b50600436106102765760003560e01c80638c7ea24b11610160578063b50cbd9f116100d8578063e985e9c51161008c578063f02678e911610071578063f02678e914610549578063f242432a1461055c578063f2fde38b1461056f57600080fd5b8063e985e9c51461052d578063ede9dddd1461054057600080fd5b8063db7fd408116100bd578063db7fd408146104ff578063e79433f514610512578063e8a3d4851461052557600080fd5b8063b50cbd9f146104df578063cfcf6d91146104f757600080fd5b80639b1a51731161012f578063a9c68c6d11610114578063a9c68c6d14610496578063adfdeef9146104b9578063b2118a8d146104cc57600080fd5b80639b1a517314610470578063a22cb4651461048357600080fd5b80638c7ea24b146104315780638da5cb5b14610444578063938e3d7b1461045557806395d89b411461046857600080fd5b80632a55205a116101f35780634fd1f198116101c2578063603f4d52116101a7578063603f4d52146103f15780637312808b1461040b5780637df325e11461041e57600080fd5b80634fd1f198146103cb5780635a67de07146103de57600080fd5b80632a55205a1461035d5780632eb2c2d61461038f57806332cb6b0c146103a25780634e1273f4146103ab57600080fd5b80630e89341c1161024a57806318160ddd1161022f57806318160ddd146103095780631aa5e872146103125780631ea111791461033257600080fd5b80630e89341c146102ee5780631267fc251461030157600080fd5b8062fdd58e1461027b57806301ffc9a7146102a157806302fe5305146102c457806306fdde03146102d9575b600080fd5b61028e610289366004612b05565b610582565b6040519081526020015b60405180910390f35b6102b46102af366004612b5f565b61062e565b6040519015158152602001610298565b6102d76102d2366004612bbe565b610639565b005b6102e16106d6565b6040516102989190612c5c565b6102e16102fc366004612c6f565b610764565b61028e600281565b61028e60075481565b61028e610320366004612c88565b600c6020526000908152604090205481565b600a54610345906001600160a01b031681565b6040516001600160a01b039091168152602001610298565b61037061036b366004612ca5565b6107f8565b604080516001600160a01b039093168352602083019190915201610298565b6102d761039d366004612e2c565b61085e565b61028e61037881565b6103be6103b9366004612eda565b610900565b6040516102989190612fd8565b6102b46103d9366004612fff565b610a3e565b6102d76103ec36600461306d565b610b17565b6009546103fe9060ff1681565b60405161029891906130b7565b6102d761041936600461313d565b610bec565b6102d761042c3660046131c0565b610ce3565b6102d761043f366004612b05565b610d4d565b6004546001600160a01b0316610345565b6102d7610463366004612bbe565b610e54565b6102e1610eba565b6102d761047e366004612c88565b610ec7565b6102d761049136600461320f565b610f5b565b6102b46104a4366004612c88565b600b6020526000908152604090205460ff1681565b6102d76104c7366004612c88565b610f66565b6102d76104da3660046131c0565b610fff565b6009546103459061010090046001600160a01b031681565b6102d7611064565b6102d761050d366004613248565b6110e8565b6102d7610520366004612c6f565b6111e3565b6102e1611249565b6102b461053b366004613294565b611256565b61028e6103e881565b6102d761055736600461313d565b611353565b6102d761056a3660046132c2565b6114b0565b6102d761057d366004612c88565b61154b565b60006001600160a01b0383166106055760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006106288261162a565b6004546001600160a01b031633146106935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b6106d282828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061168092505050565b5050565b600580546106e39061332b565b80601f016020809104026020016040519081016040528092919081815260200182805461070f9061332b565b801561075c5780601f106107315761010080835404028352916020019161075c565b820191906000526020600020905b81548152906001019060200180831161073f57829003601f168201915b505050505081565b6060600280546107739061332b565b80601f016020809104026020016040519081016040528092919081815260200182805461079f9061332b565b80156107ec5780601f106107c1576101008083540402835291602001916107ec565b820191906000526020600020905b8154815290600101906020018083116107cf57829003601f168201915b50505050509050919050565b604080518082019091526003546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff166020830181905290916000916127109061084a90866133ae565b61085491906133eb565b9150509250929050565b6001600160a01b03851633148061087a575061087a8533611256565b6108ec5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016105fc565b6108f98585858585611693565b5050505050565b606081518351146109795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016105fc565b6000835167ffffffffffffffff81111561099557610995612cc7565b6040519080825280602002602001820160405280156109be578160200160208202803683370190505b50905060005b8451811015610a3657610a098582815181106109e2576109e2613426565b60200260200101518583815181106109fc576109fc613426565b6020026020010151610582565b828281518110610a1b57610a1b613426565b6020908102919091010152610a2f81613455565b90506109c4565b509392505050565b600080610ab9858585604051602001610a599392919061348e565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b9050610afb8188888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061192992505050565b600a546001600160a01b03918216911614979650505050505050565b6004546001600160a01b03163314610b715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b600980548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018381811115610bad57610bad613088565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee181604051610be191906130b7565b60405180910390a150565b6004546001600160a01b03163314610c465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b828114610c7f576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610cdb57610cd386868684818110610ca057610ca0613426565b9050602002016020810190610cb59190612c88565b858585818110610cc757610cc7613426565b90506020020135611945565b600101610c82565b505050505050565b6004546001600160a01b03163314610d3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b610d48838383611959565b505050565b6004546001600160a01b03163314610da75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b6103e8811115610de3576040517f03e231b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600380547fffffffffffffffffff000000000000000000000000000000000000000000000016909117740100000000000000000000000000000000000000009092029190911790555050565b6004546001600160a01b03163314610eae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b610d48600883836129c5565b600680546106e39061332b565b6004546001600160a01b03163314610f215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6106d23383836119d6565b6004546001600160a01b03163314610fc05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b600980546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b6004546001600160a01b031633146110595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b610d48838383611945565b336000908152600b602052604090205460ff16156110ae576040517ff91d3ca000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60018060095460ff16600181111561110257611102613088565b14611139576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282600161114a8383338446610a3e565b611180576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600c602052604090208054880190819055600210156111d1576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111da87611ae9565b50505050505050565b6004546001600160a01b0316331461123d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b61124681611ae9565b50565b600880546106e39061332b565b6001600160a01b0382166000908152600b602052604081205460ff16611322576009546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152610100909204821691841690829063c455279190602401602060405180830381865afa1580156112e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113079190613508565b6001600160a01b03161415611320576001915050610628565b505b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6004546001600160a01b031633146113ad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b8281146113e6576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610cdb57600083838381811061140557611405613426565b90506020028101906114179190613525565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394505050505b81518110156114a65761149e8888888681811061146a5761146a613426565b905060200201602081019061147f9190612c88565b84848151811061149157611491613426565b6020026020010151611959565b60010161144b565b50506001016113e9565b6001600160a01b0385163314806114cc57506114cc8533611256565b61153e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016105fc565b6108f98585858585611b4a565b6004546001600160a01b031633146115a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b6001600160a01b0381166116215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105fc565b61124681611d13565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610628575061062882611d7d565b80516106d2906002906020840190612a67565b815183511461170a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016105fc565b6001600160a01b0384166117865760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105fc565b3360005b84518110156118c35760008582815181106117a7576117a7613426565b6020026020010151905060008583815181106117c5576117c5613426565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561186b5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016105fc565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906118a890849061358d565b92505081905550505050806118bc90613455565b905061178a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119139291906135a5565b60405180910390a4610cdb818787878787611e60565b60008060006119388585612065565b91509150610a36816120d5565b610d486001600160a01b03841683836122c6565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b1580156119c257600080fd5b505af11580156111da573d6000803e3d6000fd5b816001600160a01b0316836001600160a01b03161415611a5e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016105fc565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600780548201908190556103781015611b2e576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112463360008360405180602001604052806000815250612346565b6001600160a01b038416611bc65760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105fc565b33611bdf818787611bd688612463565b6108f988612463565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611c765760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016105fc565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611cb390849061358d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46111da8288888888886124ae565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480611e1057507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061062857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610628565b6001600160a01b0384163b15610cdb576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190611ebd90899089908890889088906004016135d3565b6020604051808303816000875af1925050508015611ef8575060408051601f3d908101601f19168201909252611ef591810190613631565b60015b611fae57611f0461364e565b806308c379a01415611f3e5750611f1961366a565b80611f245750611f40565b8060405162461bcd60e51b81526004016105fc9190612c5c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016105fc565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146111da5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016105fc565b60008082516041141561209c5760208301516040840151606085015160001a61209087828585612609565b945094505050506120ce565b8251604014156120c657602083015160408401516120bb8683836126f6565b9350935050506120ce565b506000905060025b9250929050565b60008160048111156120e9576120e9613088565b14156120f25750565b600181600481111561210657612106613088565b14156121545760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105fc565b600281600481111561216857612168613088565b14156121b65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105fc565b60038160048111156121ca576121ca613088565b141561223e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105fc565b600481600481111561225257612252613088565b14156112465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105fc565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d48908490612748565b6001600160a01b0384166123c25760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105fc565b336123d381600087611bd688612463565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061240390849061358d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46108f9816000878787876124ae565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061249d5761249d613426565b602090810291909101015292915050565b6001600160a01b0384163b15610cdb576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e619061250b9089908990889088908890600401613712565b6020604051808303816000875af1925050508015612546575060408051601f3d908101601f1916820190925261254391810190613631565b60015b61255257611f0461364e565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146111da5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016105fc565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561264057506000905060036126ed565b8460ff16601b1415801561265857508460ff16601c14155b1561266957506000905060046126ed565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126bd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126e6576000600192509250506126ed565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161272c60ff86901c601b61358d565b905061273a87828885612609565b935093505050935093915050565b600061279d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661282d9092919063ffffffff16565b805190915015610d4857808060200190518101906127bb919061374a565b610d485760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105fc565b606061283c8484600085612844565b949350505050565b6060824710156128bc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105fc565b6001600160a01b0385163b6129135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105fc565b600080866001600160a01b0316858760405161292f9190613767565b60006040518083038185875af1925050503d806000811461296c576040519150601f19603f3d011682016040523d82523d6000602084013e612971565b606091505b509150915061298182828661298c565b979650505050505050565b6060831561299b57508161134c565b8251156129ab5782518084602001fd5b8160405162461bcd60e51b81526004016105fc9190612c5c565b8280546129d19061332b565b90600052602060002090601f0160209004810192826129f35760008555612a57565b82601f10612a2a578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612a57565b82800160010185558215612a57579182015b82811115612a57578235825591602001919060010190612a3c565b50612a63929150612adb565b5090565b828054612a739061332b565b90600052602060002090601f016020900481019282612a955760008555612a57565b82601f10612aae57805160ff1916838001178555612a57565b82800160010185558215612a57579182015b82811115612a57578251825591602001919060010190612ac0565b5b80821115612a635760008155600101612adc565b6001600160a01b038116811461124657600080fd5b60008060408385031215612b1857600080fd5b8235612b2381612af0565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461124657600080fd5b600060208284031215612b7157600080fd5b813561134c81612b31565b60008083601f840112612b8e57600080fd5b50813567ffffffffffffffff811115612ba657600080fd5b6020830191508360208285010111156120ce57600080fd5b60008060208385031215612bd157600080fd5b823567ffffffffffffffff811115612be857600080fd5b612bf485828601612b7c565b90969095509350505050565b60005b83811015612c1b578181015183820152602001612c03565b83811115612c2a576000848401525b50505050565b60008151808452612c48816020860160208601612c00565b601f01601f19169290920160200192915050565b60208152600061134c6020830184612c30565b600060208284031215612c8157600080fd5b5035919050565b600060208284031215612c9a57600080fd5b813561134c81612af0565b60008060408385031215612cb857600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612d1c57612d1c612cc7565b6040525050565b600067ffffffffffffffff821115612d3d57612d3d612cc7565b5060051b60200190565b600082601f830112612d5857600080fd5b81356020612d6582612d23565b604051612d728282612cf6565b83815260059390931b8501820192828101915086841115612d9257600080fd5b8286015b84811015612dad5780358352918301918301612d96565b509695505050505050565b600082601f830112612dc957600080fd5b813567ffffffffffffffff811115612de357612de3612cc7565b604051612dfa6020601f19601f8501160182612cf6565b818152846020838601011115612e0f57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612e4457600080fd5b8535612e4f81612af0565b94506020860135612e5f81612af0565b9350604086013567ffffffffffffffff80821115612e7c57600080fd5b612e8889838a01612d47565b94506060880135915080821115612e9e57600080fd5b612eaa89838a01612d47565b93506080880135915080821115612ec057600080fd5b50612ecd88828901612db8565b9150509295509295909350565b60008060408385031215612eed57600080fd5b823567ffffffffffffffff80821115612f0557600080fd5b818501915085601f830112612f1957600080fd5b81356020612f2682612d23565b604051612f338282612cf6565b83815260059390931b8501820192828101915089841115612f5357600080fd5b948201945b83861015612f7a578535612f6b81612af0565b82529482019490820190612f58565b96505086013592505080821115612f9057600080fd5b5061085485828601612d47565b600081518084526020808501945080840160005b83811015612fcd57815187529582019590820190600101612fb1565b509495945050505050565b60208152600061134c6020830184612f9d565b803560028110612ffa57600080fd5b919050565b60008060008060006080868803121561301757600080fd5b853567ffffffffffffffff81111561302e57600080fd5b61303a88828901612b7c565b909650945050602086013561304e81612af0565b925061305c60408701612feb565b949793965091946060013592915050565b60006020828403121561307f57600080fd5b61134c82612feb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600283106130f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60008083601f84011261310a57600080fd5b50813567ffffffffffffffff81111561312257600080fd5b6020830191508360208260051b85010111156120ce57600080fd5b60008060008060006060868803121561315557600080fd5b853561316081612af0565b9450602086013567ffffffffffffffff8082111561317d57600080fd5b61318989838a016130f8565b909650945060408801359150808211156131a257600080fd5b506131af888289016130f8565b969995985093965092949392505050565b6000806000606084860312156131d557600080fd5b83356131e081612af0565b925060208401356131f081612af0565b929592945050506040919091013590565b801515811461124657600080fd5b6000806040838503121561322257600080fd5b823561322d81612af0565b9150602083013561323d81613201565b809150509250929050565b60008060006040848603121561325d57600080fd5b83359250602084013567ffffffffffffffff81111561327b57600080fd5b61328786828701612b7c565b9497909650939450505050565b600080604083850312156132a757600080fd5b82356132b281612af0565b9150602083013561323d81612af0565b600080600080600060a086880312156132da57600080fd5b85356132e581612af0565b945060208601356132f581612af0565b93506040860135925060608601359150608086013567ffffffffffffffff81111561331f57600080fd5b612ecd88828901612db8565b600181811c9082168061333f57607f821691505b60208210811415613379577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156133e6576133e661337f565b500290565b600082613421577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134875761348761337f565b5060010190565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681526000600284106134ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89290921b60148301526015820152603501919050565b60006020828403121561351a57600080fd5b815161134c81612af0565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261355a57600080fd5b83018035915067ffffffffffffffff82111561357557600080fd5b6020019150600581901b36038213156120ce57600080fd5b600082198211156135a0576135a061337f565b500190565b6040815260006135b86040830185612f9d565b82810360208401526135ca8185612f9d565b95945050505050565b60006001600160a01b03808816835280871660208401525060a060408301526135ff60a0830186612f9d565b82810360608401526136118186612f9d565b905082810360808401526136258185612c30565b98975050505050505050565b60006020828403121561364357600080fd5b815161134c81612b31565b600060033d11156136675760046000803e5060005160e01c5b90565b600060443d10156136785790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff81602484011181841117156136c657505050505090565b82850191508151818111156136de5750505050505090565b843d87010160208285010111156136f85750505050505090565b61370760208286010187612cf6565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261298160a0830184612c30565b60006020828403121561375c57600080fd5b815161134c81613201565b60008251613779818460208701612c00565b919091019291505056fea264697066735822122025a6788b0c6fd663b13eed9ad6d33dfea2019d60a4cdcc9bc04e1dd501e8870f64736f6c634300080c003300000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000b9700ed487f75e59736d1f6cdee553688d0469f600000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000028b322e9d2a86eb7517514c827f281d4436c39a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000001d50726169736520476f6c64656e204d656d626572736869702043617264000000000000000000000000000000000000000000000000000000000000000000000a507261697365476f6c6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6e6674636f666665652e6d7970696e6174612e636c6f75642f697066732f516d615951634575776a443948746d786d74544c6254344173797654717238636867766b77626a34564e45456b6a000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6e6674636f666665652e6d7970696e6174612e636c6f75642f697066732f516d6135565a594439617a6f793332356a6b6d6e33444475557354784277484e38384a6b42724d574d5863687163000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102765760003560e01c80638c7ea24b11610160578063b50cbd9f116100d8578063e985e9c51161008c578063f02678e911610071578063f02678e914610549578063f242432a1461055c578063f2fde38b1461056f57600080fd5b8063e985e9c51461052d578063ede9dddd1461054057600080fd5b8063db7fd408116100bd578063db7fd408146104ff578063e79433f514610512578063e8a3d4851461052557600080fd5b8063b50cbd9f146104df578063cfcf6d91146104f757600080fd5b80639b1a51731161012f578063a9c68c6d11610114578063a9c68c6d14610496578063adfdeef9146104b9578063b2118a8d146104cc57600080fd5b80639b1a517314610470578063a22cb4651461048357600080fd5b80638c7ea24b146104315780638da5cb5b14610444578063938e3d7b1461045557806395d89b411461046857600080fd5b80632a55205a116101f35780634fd1f198116101c2578063603f4d52116101a7578063603f4d52146103f15780637312808b1461040b5780637df325e11461041e57600080fd5b80634fd1f198146103cb5780635a67de07146103de57600080fd5b80632a55205a1461035d5780632eb2c2d61461038f57806332cb6b0c146103a25780634e1273f4146103ab57600080fd5b80630e89341c1161024a57806318160ddd1161022f57806318160ddd146103095780631aa5e872146103125780631ea111791461033257600080fd5b80630e89341c146102ee5780631267fc251461030157600080fd5b8062fdd58e1461027b57806301ffc9a7146102a157806302fe5305146102c457806306fdde03146102d9575b600080fd5b61028e610289366004612b05565b610582565b6040519081526020015b60405180910390f35b6102b46102af366004612b5f565b61062e565b6040519015158152602001610298565b6102d76102d2366004612bbe565b610639565b005b6102e16106d6565b6040516102989190612c5c565b6102e16102fc366004612c6f565b610764565b61028e600281565b61028e60075481565b61028e610320366004612c88565b600c6020526000908152604090205481565b600a54610345906001600160a01b031681565b6040516001600160a01b039091168152602001610298565b61037061036b366004612ca5565b6107f8565b604080516001600160a01b039093168352602083019190915201610298565b6102d761039d366004612e2c565b61085e565b61028e61037881565b6103be6103b9366004612eda565b610900565b6040516102989190612fd8565b6102b46103d9366004612fff565b610a3e565b6102d76103ec36600461306d565b610b17565b6009546103fe9060ff1681565b60405161029891906130b7565b6102d761041936600461313d565b610bec565b6102d761042c3660046131c0565b610ce3565b6102d761043f366004612b05565b610d4d565b6004546001600160a01b0316610345565b6102d7610463366004612bbe565b610e54565b6102e1610eba565b6102d761047e366004612c88565b610ec7565b6102d761049136600461320f565b610f5b565b6102b46104a4366004612c88565b600b6020526000908152604090205460ff1681565b6102d76104c7366004612c88565b610f66565b6102d76104da3660046131c0565b610fff565b6009546103459061010090046001600160a01b031681565b6102d7611064565b6102d761050d366004613248565b6110e8565b6102d7610520366004612c6f565b6111e3565b6102e1611249565b6102b461053b366004613294565b611256565b61028e6103e881565b6102d761055736600461313d565b611353565b6102d761056a3660046132c2565b6114b0565b6102d761057d366004612c88565b61154b565b60006001600160a01b0383166106055760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006106288261162a565b6004546001600160a01b031633146106935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b6106d282828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061168092505050565b5050565b600580546106e39061332b565b80601f016020809104026020016040519081016040528092919081815260200182805461070f9061332b565b801561075c5780601f106107315761010080835404028352916020019161075c565b820191906000526020600020905b81548152906001019060200180831161073f57829003601f168201915b505050505081565b6060600280546107739061332b565b80601f016020809104026020016040519081016040528092919081815260200182805461079f9061332b565b80156107ec5780601f106107c1576101008083540402835291602001916107ec565b820191906000526020600020905b8154815290600101906020018083116107cf57829003601f168201915b50505050509050919050565b604080518082019091526003546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff166020830181905290916000916127109061084a90866133ae565b61085491906133eb565b9150509250929050565b6001600160a01b03851633148061087a575061087a8533611256565b6108ec5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016105fc565b6108f98585858585611693565b5050505050565b606081518351146109795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016105fc565b6000835167ffffffffffffffff81111561099557610995612cc7565b6040519080825280602002602001820160405280156109be578160200160208202803683370190505b50905060005b8451811015610a3657610a098582815181106109e2576109e2613426565b60200260200101518583815181106109fc576109fc613426565b6020026020010151610582565b828281518110610a1b57610a1b613426565b6020908102919091010152610a2f81613455565b90506109c4565b509392505050565b600080610ab9858585604051602001610a599392919061348e565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b9050610afb8188888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061192992505050565b600a546001600160a01b03918216911614979650505050505050565b6004546001600160a01b03163314610b715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b600980548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018381811115610bad57610bad613088565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee181604051610be191906130b7565b60405180910390a150565b6004546001600160a01b03163314610c465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b828114610c7f576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610cdb57610cd386868684818110610ca057610ca0613426565b9050602002016020810190610cb59190612c88565b858585818110610cc757610cc7613426565b90506020020135611945565b600101610c82565b505050505050565b6004546001600160a01b03163314610d3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b610d48838383611959565b505050565b6004546001600160a01b03163314610da75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b6103e8811115610de3576040517f03e231b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600380547fffffffffffffffffff000000000000000000000000000000000000000000000016909117740100000000000000000000000000000000000000009092029190911790555050565b6004546001600160a01b03163314610eae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b610d48600883836129c5565b600680546106e39061332b565b6004546001600160a01b03163314610f215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6106d23383836119d6565b6004546001600160a01b03163314610fc05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b600980546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b6004546001600160a01b031633146110595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b610d48838383611945565b336000908152600b602052604090205460ff16156110ae576040517ff91d3ca000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60018060095460ff16600181111561110257611102613088565b14611139576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282600161114a8383338446610a3e565b611180576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600c602052604090208054880190819055600210156111d1576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111da87611ae9565b50505050505050565b6004546001600160a01b0316331461123d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b61124681611ae9565b50565b600880546106e39061332b565b6001600160a01b0382166000908152600b602052604081205460ff16611322576009546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152610100909204821691841690829063c455279190602401602060405180830381865afa1580156112e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113079190613508565b6001600160a01b03161415611320576001915050610628565b505b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6004546001600160a01b031633146113ad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b8281146113e6576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83811015610cdb57600083838381811061140557611405613426565b90506020028101906114179190613525565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394505050505b81518110156114a65761149e8888888681811061146a5761146a613426565b905060200201602081019061147f9190612c88565b84848151811061149157611491613426565b6020026020010151611959565b60010161144b565b50506001016113e9565b6001600160a01b0385163314806114cc57506114cc8533611256565b61153e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016105fc565b6108f98585858585611b4a565b6004546001600160a01b031633146115a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105fc565b6001600160a01b0381166116215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105fc565b61124681611d13565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610628575061062882611d7d565b80516106d2906002906020840190612a67565b815183511461170a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016105fc565b6001600160a01b0384166117865760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105fc565b3360005b84518110156118c35760008582815181106117a7576117a7613426565b6020026020010151905060008583815181106117c5576117c5613426565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561186b5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016105fc565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906118a890849061358d565b92505081905550505050806118bc90613455565b905061178a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119139291906135a5565b60405180910390a4610cdb818787878787611e60565b60008060006119388585612065565b91509150610a36816120d5565b610d486001600160a01b03841683836122c6565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b1580156119c257600080fd5b505af11580156111da573d6000803e3d6000fd5b816001600160a01b0316836001600160a01b03161415611a5e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016105fc565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600780548201908190556103781015611b2e576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112463360008360405180602001604052806000815250612346565b6001600160a01b038416611bc65760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105fc565b33611bdf818787611bd688612463565b6108f988612463565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611c765760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016105fc565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611cb390849061358d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46111da8288888888886124ae565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480611e1057507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061062857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610628565b6001600160a01b0384163b15610cdb576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190611ebd90899089908890889088906004016135d3565b6020604051808303816000875af1925050508015611ef8575060408051601f3d908101601f19168201909252611ef591810190613631565b60015b611fae57611f0461364e565b806308c379a01415611f3e5750611f1961366a565b80611f245750611f40565b8060405162461bcd60e51b81526004016105fc9190612c5c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016105fc565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146111da5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016105fc565b60008082516041141561209c5760208301516040840151606085015160001a61209087828585612609565b945094505050506120ce565b8251604014156120c657602083015160408401516120bb8683836126f6565b9350935050506120ce565b506000905060025b9250929050565b60008160048111156120e9576120e9613088565b14156120f25750565b600181600481111561210657612106613088565b14156121545760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105fc565b600281600481111561216857612168613088565b14156121b65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105fc565b60038160048111156121ca576121ca613088565b141561223e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105fc565b600481600481111561225257612252613088565b14156112465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016105fc565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d48908490612748565b6001600160a01b0384166123c25760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105fc565b336123d381600087611bd688612463565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061240390849061358d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46108f9816000878787876124ae565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061249d5761249d613426565b602090810291909101015292915050565b6001600160a01b0384163b15610cdb576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e619061250b9089908990889088908890600401613712565b6020604051808303816000875af1925050508015612546575060408051601f3d908101601f1916820190925261254391810190613631565b60015b61255257611f0461364e565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146111da5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016105fc565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561264057506000905060036126ed565b8460ff16601b1415801561265857508460ff16601c14155b1561266957506000905060046126ed565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126bd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126e6576000600192509250506126ed565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161272c60ff86901c601b61358d565b905061273a87828885612609565b935093505050935093915050565b600061279d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661282d9092919063ffffffff16565b805190915015610d4857808060200190518101906127bb919061374a565b610d485760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105fc565b606061283c8484600085612844565b949350505050565b6060824710156128bc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105fc565b6001600160a01b0385163b6129135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105fc565b600080866001600160a01b0316858760405161292f9190613767565b60006040518083038185875af1925050503d806000811461296c576040519150601f19603f3d011682016040523d82523d6000602084013e612971565b606091505b509150915061298182828661298c565b979650505050505050565b6060831561299b57508161134c565b8251156129ab5782518084602001fd5b8160405162461bcd60e51b81526004016105fc9190612c5c565b8280546129d19061332b565b90600052602060002090601f0160209004810192826129f35760008555612a57565b82601f10612a2a578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612a57565b82800160010185558215612a57579182015b82811115612a57578235825591602001919060010190612a3c565b50612a63929150612adb565b5090565b828054612a739061332b565b90600052602060002090601f016020900481019282612a955760008555612a57565b82601f10612aae57805160ff1916838001178555612a57565b82800160010185558215612a57579182015b82811115612a57578251825591602001919060010190612ac0565b5b80821115612a635760008155600101612adc565b6001600160a01b038116811461124657600080fd5b60008060408385031215612b1857600080fd5b8235612b2381612af0565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461124657600080fd5b600060208284031215612b7157600080fd5b813561134c81612b31565b60008083601f840112612b8e57600080fd5b50813567ffffffffffffffff811115612ba657600080fd5b6020830191508360208285010111156120ce57600080fd5b60008060208385031215612bd157600080fd5b823567ffffffffffffffff811115612be857600080fd5b612bf485828601612b7c565b90969095509350505050565b60005b83811015612c1b578181015183820152602001612c03565b83811115612c2a576000848401525b50505050565b60008151808452612c48816020860160208601612c00565b601f01601f19169290920160200192915050565b60208152600061134c6020830184612c30565b600060208284031215612c8157600080fd5b5035919050565b600060208284031215612c9a57600080fd5b813561134c81612af0565b60008060408385031215612cb857600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612d1c57612d1c612cc7565b6040525050565b600067ffffffffffffffff821115612d3d57612d3d612cc7565b5060051b60200190565b600082601f830112612d5857600080fd5b81356020612d6582612d23565b604051612d728282612cf6565b83815260059390931b8501820192828101915086841115612d9257600080fd5b8286015b84811015612dad5780358352918301918301612d96565b509695505050505050565b600082601f830112612dc957600080fd5b813567ffffffffffffffff811115612de357612de3612cc7565b604051612dfa6020601f19601f8501160182612cf6565b818152846020838601011115612e0f57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612e4457600080fd5b8535612e4f81612af0565b94506020860135612e5f81612af0565b9350604086013567ffffffffffffffff80821115612e7c57600080fd5b612e8889838a01612d47565b94506060880135915080821115612e9e57600080fd5b612eaa89838a01612d47565b93506080880135915080821115612ec057600080fd5b50612ecd88828901612db8565b9150509295509295909350565b60008060408385031215612eed57600080fd5b823567ffffffffffffffff80821115612f0557600080fd5b818501915085601f830112612f1957600080fd5b81356020612f2682612d23565b604051612f338282612cf6565b83815260059390931b8501820192828101915089841115612f5357600080fd5b948201945b83861015612f7a578535612f6b81612af0565b82529482019490820190612f58565b96505086013592505080821115612f9057600080fd5b5061085485828601612d47565b600081518084526020808501945080840160005b83811015612fcd57815187529582019590820190600101612fb1565b509495945050505050565b60208152600061134c6020830184612f9d565b803560028110612ffa57600080fd5b919050565b60008060008060006080868803121561301757600080fd5b853567ffffffffffffffff81111561302e57600080fd5b61303a88828901612b7c565b909650945050602086013561304e81612af0565b925061305c60408701612feb565b949793965091946060013592915050565b60006020828403121561307f57600080fd5b61134c82612feb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600283106130f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60008083601f84011261310a57600080fd5b50813567ffffffffffffffff81111561312257600080fd5b6020830191508360208260051b85010111156120ce57600080fd5b60008060008060006060868803121561315557600080fd5b853561316081612af0565b9450602086013567ffffffffffffffff8082111561317d57600080fd5b61318989838a016130f8565b909650945060408801359150808211156131a257600080fd5b506131af888289016130f8565b969995985093965092949392505050565b6000806000606084860312156131d557600080fd5b83356131e081612af0565b925060208401356131f081612af0565b929592945050506040919091013590565b801515811461124657600080fd5b6000806040838503121561322257600080fd5b823561322d81612af0565b9150602083013561323d81613201565b809150509250929050565b60008060006040848603121561325d57600080fd5b83359250602084013567ffffffffffffffff81111561327b57600080fd5b61328786828701612b7c565b9497909650939450505050565b600080604083850312156132a757600080fd5b82356132b281612af0565b9150602083013561323d81612af0565b600080600080600060a086880312156132da57600080fd5b85356132e581612af0565b945060208601356132f581612af0565b93506040860135925060608601359150608086013567ffffffffffffffff81111561331f57600080fd5b612ecd88828901612db8565b600181811c9082168061333f57607f821691505b60208210811415613379577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156133e6576133e661337f565b500290565b600082613421577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134875761348761337f565b5060010190565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681526000600284106134ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89290921b60148301526015820152603501919050565b60006020828403121561351a57600080fd5b815161134c81612af0565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261355a57600080fd5b83018035915067ffffffffffffffff82111561357557600080fd5b6020019150600581901b36038213156120ce57600080fd5b600082198211156135a0576135a061337f565b500190565b6040815260006135b86040830185612f9d565b82810360208401526135ca8185612f9d565b95945050505050565b60006001600160a01b03808816835280871660208401525060a060408301526135ff60a0830186612f9d565b82810360608401526136118186612f9d565b905082810360808401526136258185612c30565b98975050505050505050565b60006020828403121561364357600080fd5b815161134c81612b31565b600060033d11156136675760046000803e5060005160e01c5b90565b600060443d10156136785790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff81602484011181841117156136c657505050505090565b82850191508151818111156136de5750505050505090565b843d87010160208285010111156136f85750505050505090565b61370760208286010187612cf6565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261298160a0830184612c30565b60006020828403121561375c57600080fd5b815161134c81613201565b60008251613779818460208701612c00565b919091019291505056fea264697066735822122025a6788b0c6fd663b13eed9ad6d33dfea2019d60a4cdcc9bc04e1dd501e8870f64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000b9700ed487f75e59736d1f6cdee553688d0469f600000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000028b322e9d2a86eb7517514c827f281d4436c39a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000001d50726169736520476f6c64656e204d656d626572736869702043617264000000000000000000000000000000000000000000000000000000000000000000000a507261697365476f6c6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6e6674636f666665652e6d7970696e6174612e636c6f75642f697066732f516d615951634575776a443948746d786d74544c6254344173797654717238636867766b77626a34564e45456b6a000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6e6674636f666665652e6d7970696e6174612e636c6f75642f697066732f516d6135565a594439617a6f793332356a6b6d6e33444475557354784277484e38384a6b42724d574d5863687163000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Praise Golden Membership Card
Arg [1] : _symbol (string): PraiseGold
Arg [2] : _couponSigner (address): 0xB9700eD487F75e59736D1f6cDee553688D0469f6
Arg [3] : _contractURI (string): https://nftcoffee.mypinata.cloud/ipfs/QmaYQcEuwjD9HtmxmtTLbT4AsyvTqr8chgvkwbj4VNEEkj
Arg [4] : _baseURI (string): https://nftcoffee.mypinata.cloud/ipfs/Qma5VZYD9azoy325jkmn3DDuUsTxBwHN88JkBrMWMXchqc
Arg [5] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [6] : _royaltiesReceiver (address): 0x028B322e9D2A86Eb7517514C827f281d4436C39a
Arg [7] : _royaltiesPercent (uint256): 1000
-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 000000000000000000000000b9700ed487f75e59736d1f6cdee553688d0469f6
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [6] : 000000000000000000000000028b322e9d2a86eb7517514c827f281d4436c39a
Arg [7] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [8] : 000000000000000000000000000000000000000000000000000000000000001d
Arg [9] : 50726169736520476f6c64656e204d656d626572736869702043617264000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 507261697365476f6c6400000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [13] : 68747470733a2f2f6e6674636f666665652e6d7970696e6174612e636c6f7564
Arg [14] : 2f697066732f516d615951634575776a443948746d786d74544c625434417379
Arg [15] : 7654717238636867766b77626a34564e45456b6a000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [17] : 68747470733a2f2f6e6674636f666665652e6d7970696e6174612e636c6f7564
Arg [18] : 2f697066732f516d6135565a594439617a6f793332356a6b6d6e334444755573
Arg [19] : 54784277484e38384a6b42724d574d5863687163000000000000000000000000
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.