ERC-1155
Overview
Max Total Supply
1,437
Holders
438
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:
BlockPunks
Compiler Version
v0.7.3+commit.9bfce1f6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.7.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; contract BlockPunks is ERC1155, AccessControl { using SafeMath for uint; uint public constant TOTAL_SUPPLY = 10000; uint public constant RESERVED_TOTAL_SUPPLY = 1045; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); address constant _devAddress = 0x38c918Db9dfb6Cfc27F462ce1CD5C56072D0A4f1; address constant _ownerAddress = 0xfEBACBC8493100F2218940528b76Ffc4B90265CF; bool public hasSaleStarted = false; bool public hasPreSaleStarted = false; uint public price; uint public reservedSupply; uint public mintedSupply; string _contractUri; mapping(uint => bool) public tokenIsMinted; mapping(address => uint) public preSaleAddressToRemainingTokens; modifier onlyAdmin() { require(hasRole(ADMIN_ROLE, msg.sender), "Restricted to admins."); _; } constructor(string memory uri, string memory __contractUri) ERC1155(uri) { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(ADMIN_ROLE, msg.sender); price = 0.06 ether; _contractUri = __contractUri; } function mint(uint quantity, address receiver) public payable { if (hasPreSaleStarted && !hasSaleStarted) require(preSaleAddressToRemainingTokens[receiver] >= quantity, "amount not reserved to this address"); else require(hasSaleStarted, "sale hasn't started"); require(quantity > 0, "quantity cannot be zero"); require(totalSupply().add(quantity) <= TOTAL_SUPPLY, "sold out"); require(msg.value >= price.mul(quantity) || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "ether value sent is below the price"); for (uint i = 0; i < quantity; i++) { uint mintIndex = RESERVED_TOTAL_SUPPLY + mintedSupply; _mint(receiver, mintIndex, 1, ""); mintedSupply++; tokenIsMinted[mintIndex] = true; } if (hasPreSaleStarted && !hasSaleStarted) preSaleAddressToRemainingTokens[receiver] -= quantity; } function mintReserved(address receiver, uint tokenId) public onlyAdmin { require(!tokenIsMinted[tokenId], "token already minted"); require(tokenId < RESERVED_TOTAL_SUPPLY, "token is not on reservedSupply"); _mint(receiver, tokenId, 1, ""); reservedSupply++; tokenIsMinted[tokenId] = true; } function batchMintReserved(address[] memory receivers, uint[] memory tokenIds) public onlyAdmin { require(receivers.length == tokenIds.length, "input length is not equal"); for (uint i = 0; i < receivers.length; i++) { mintReserved(receivers[i], tokenIds[i]); } } function addToPresaleWhitelist(address receiver) public onlyAdmin { preSaleAddressToRemainingTokens[receiver] = 10; } function batchAddToPresaleWhitelist(address[] memory receivers) public onlyAdmin { for (uint i = 0; i < receivers.length; i++) { addToPresaleWhitelist(receivers[i]); } } function totalSupply() public view returns (uint) { return reservedSupply + mintedSupply; } function contractURI() public view returns (string memory) { return _contractUri; } function setURI(string memory newURI) external onlyAdmin { super._setURI(newURI); } function setContractURI(string memory __contractUri) public onlyAdmin { _contractUri = __contractUri; } function setPrice(uint _price) public onlyAdmin { price = _price; } function toggleSale() public onlyAdmin { hasSaleStarted = !hasSaleStarted; } function togglePreSale() public onlyAdmin { hasPreSaleStarted = !hasPreSaleStarted; } function addAdmin(address account) public virtual onlyAdmin { grantRole(ADMIN_ROLE, account); } function removeAdmin(address account) public virtual onlyAdmin { renounceRole(ADMIN_ROLE, account); } function withdrawAll() public onlyAdmin { require(payable(_devAddress).send(address(this).balance.mul(2).div(100))); require(payable(_ownerAddress).send(address(this).balance)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC1155.sol"; import "./IERC1155MetadataURI.sol"; import "./IERC1155Receiver.sol"; import "../../utils/Context.sol"; import "../../introspection/ERC165.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.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 SafeMath for uint256; 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; /* * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4 * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6 * * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^ * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26 */ bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26; /* * bytes4(keccak256('uri(uint256)')) == 0x0e89341c */ bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c; /** * @dev See {_setURI}. */ constructor (string memory uri_) public { _setURI(uri_); // register the supported interfaces to conform to ERC1155 via ERC165 _registerInterface(_INTERFACE_ID_ERC1155); // register the supported interfaces to conform to ERC1155MetadataURI via ERC165 _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI); } /** * @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) external view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] memory accounts, uint256[] memory ids ) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer"); _balances[id][to] = _balances[id][to].add(amount); emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; _balances[id][from] = _balances[id][from].sub( amount, "ERC1155: insufficient balance for transfer" ); _balances[id][to] = _balances[id][to].add(amount); } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] = _balances[id][account].add(amount); emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]); } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn(address account, uint256 id, uint256 amount) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); _balances[id][account] = _balances[id][account].sub( amount, "ERC1155: burn amount exceeds balance" ); emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint i = 0; i < ids.length; i++) { _balances[ids[i]][account] = _balances[ids[i]][account].sub( amounts[i], "ERC1155: burn amount exceeds balance" ); } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { } function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) { if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/EnumerableSet.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../../introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "./IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../introspection/IERC165.sol"; /** * _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"string","name":"__contractUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"addToPresaleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"batchAddToPresaleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchMintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hasPreSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleAddressToRemainingTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","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":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIsMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600560006101000a81548160ff0219169083151502179055506000600560016101000a81548160ff0219169083151502179055503480156200004757600080fd5b5060405162004fb238038062004fb2833981810160405260408110156200006d57600080fd5b81019080805160405193929190846401000000008211156200008e57600080fd5b83820191506020820185811115620000a557600080fd5b8251866001820283011164010000000082111715620000c357600080fd5b8083526020830192505050908051906020019080838360005b83811015620000f9578082015181840152602081019050620000dc565b50505050905090810190601f168015620001275780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200014b57600080fd5b838201915060208201858111156200016257600080fd5b82518660018202830111640100000000821117156200018057600080fd5b8083526020830192505050908051906020019080838360005b83811015620001b657808201518184015260208101905062000199565b50505050905090810190601f168015620001e45780820380516001836020036101000a031916815260200191505b5060405250505081620002046301ffc9a760e01b620002bc60201b60201c565b6200021581620003c560201b60201c565b6200022d63d9b67a2660e01b620002bc60201b60201c565b62000245630e89341c60e01b620002bc60201b60201c565b506200025b6000801b33620003e160201b60201c565b6200028d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533620003e160201b60201c565b66d529ae9e8600006006819055508060099080519060200190620002b392919062000578565b5050506200061e565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000359576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b8060039080519060200190620003dd92919062000578565b5050565b620003f38282620003f760201b60201c565b5050565b6200042681600460008581526020019081526020016000206000016200049b60201b620035671790919060201c565b1562000497576200043c620004d360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620004cb836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620004db60201b60201c565b905092915050565b600033905090565b6000620004ef83836200055560201b60201c565b6200054a5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200054f565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620005bb57805160ff1916838001178555620005ec565b82800160010185558215620005ec579182015b82811115620005eb578251825591602001919060010190620005ce565b5b509050620005fb9190620005ff565b5090565b5b808211156200061a57600081600090555060010162000600565b5090565b614984806200062e6000396000f3fe6080604052600436106102455760003560e01c80639010d07c11610139578063a50795d6116100b6578063ca3cb5221161007a578063ca3cb52214611216578063d1be30911461122d578063d547741f1461127e578063e8a3d485146112d9578063e985e9c514611369578063f242432a146113f057610245565b8063a50795d614610f19578063abdb71d914611072578063bfc3bb7214611137578063c1bd8cf91461119c578063ca15c873146111c757610245565b806394bf804d116100fd57806394bf804d14610dc757806397f22ea914610e15578063a035b1fe14610e66578063a217fddf14610e91578063a22cb46514610ebc57610245565b80639010d07c14610bb9578063902d55a514610c2857806391b7f5ed14610c5357806391d1485414610c8e578063938e3d7b14610cff57610245565b80632f2ff15d116101c7578063704802751161018b5780637048027514610ab457806375b238fc14610b055780637d8966e414610b305780637de55fe114610b47578063853828b614610ba257610245565b80632f2ff15d146107f857806336568abe1461085357806344d19d2b146108ae5780634e1273f4146108d95780636a5928f514610a8757610245565b806318160ddd1161020e57806318160ddd146104f65780631c8b232d146105215780631d2e3dc01461054e578063248a9ca3146105795780632eb2c2d6146105c857610245565b8062fdd58e1461024a57806301ffc9a7146102b957806302fe5305146103295780630e89341c146103f15780631785f53c146104a5575b600080fd5b34801561025657600080fd5b506102a36004803603604081101561026d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061150c565b6040518082815260200191505060405180910390f35b3480156102c557600080fd5b50610311600480360360208110156102dc57600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291905050506115ec565b60405180821515815260200191505060405180910390f35b34801561033557600080fd5b506103ef6004803603602081101561034c57600080fd5b810190808035906020019064010000000081111561036957600080fd5b82018360208201111561037b57600080fd5b8035906020019184600183028401116401000000008311171561039d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611653565b005b3480156103fd57600080fd5b5061042a6004803603602081101561041457600080fd5b81019080803590602001909291905050506116fb565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561046a57808201518184015260208101905061044f565b50505050905090810190601f1680156104975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104b157600080fd5b506104f4600480360360208110156104c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061179f565b005b34801561050257600080fd5b5061050b611868565b6040518082815260200191505060405180910390f35b34801561052d57600080fd5b50610536611876565b60405180821515815260200191505060405180910390f35b34801561055a57600080fd5b50610563611889565b6040518082815260200191505060405180910390f35b34801561058557600080fd5b506105b26004803603602081101561059c57600080fd5b810190808035906020019092919050505061188f565b6040518082815260200191505060405180910390f35b3480156105d457600080fd5b506107f6600480360360a08110156105eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561064857600080fd5b82018360208201111561065a57600080fd5b8035906020019184602083028401116401000000008311171561067c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156106dc57600080fd5b8201836020820111156106ee57600080fd5b8035906020019184602083028401116401000000008311171561071057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561077057600080fd5b82018360208201111561078257600080fd5b803590602001918460018302840111640100000000831117156107a457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506118af565b005b34801561080457600080fd5b506108516004803603604081101561081b57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d3a565b005b34801561085f57600080fd5b506108ac6004803603604081101561087657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dc4565b005b3480156108ba57600080fd5b506108c3611e5d565b6040518082815260200191505060405180910390f35b3480156108e557600080fd5b50610a30600480360360408110156108fc57600080fd5b810190808035906020019064010000000081111561091957600080fd5b82018360208201111561092b57600080fd5b8035906020019184602083028401116401000000008311171561094d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156109ad57600080fd5b8201836020820111156109bf57600080fd5b803590602001918460208302840111640100000000831117156109e157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050611e63565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610a73578082015181840152602081019050610a58565b505050509050019250505060405180910390f35b348015610a9357600080fd5b50610a9c611f75565b60405180821515815260200191505060405180910390f35b348015610ac057600080fd5b50610b0360048036036020811015610ad757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f88565b005b348015610b1157600080fd5b50610b1a612051565b6040518082815260200191505060405180910390f35b348015610b3c57600080fd5b50610b45612075565b005b348015610b5357600080fd5b50610ba060048036036040811015610b6a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061213d565b005b348015610bae57600080fd5b50610bb7612342565b005b348015610bc557600080fd5b50610bfc60048036036040811015610bdc57600080fd5b8101908080359060200190929190803590602001909291905050506124aa565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610c3457600080fd5b50610c3d6124dc565b6040518082815260200191505060405180910390f35b348015610c5f57600080fd5b50610c8c60048036036020811015610c7657600080fd5b81019080803590602001909291905050506124e2565b005b348015610c9a57600080fd5b50610ce760048036036040811015610cb157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612588565b60405180821515815260200191505060405180910390f35b348015610d0b57600080fd5b50610dc560048036036020811015610d2257600080fd5b8101908080359060200190640100000000811115610d3f57600080fd5b820183602082011115610d5157600080fd5b80359060200191846001830284011164010000000083111715610d7357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506125ba565b005b610e1360048036036040811015610ddd57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612670565b005b348015610e2157600080fd5b50610e6460048036036020811015610e3857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a45565b005b348015610e7257600080fd5b50610e7b612b29565b6040518082815260200191505060405180910390f35b348015610e9d57600080fd5b50610ea6612b2f565b6040518082815260200191505060405180910390f35b348015610ec857600080fd5b50610f1760048036036040811015610edf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612b36565b005b348015610f2557600080fd5b5061107060048036036040811015610f3c57600080fd5b8101908080359060200190640100000000811115610f5957600080fd5b820183602082011115610f6b57600080fd5b80359060200191846020830284011164010000000083111715610f8d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610fed57600080fd5b820183602082011115610fff57600080fd5b8035906020019184602083028401116401000000008311171561102157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612ccf565b005b34801561107e57600080fd5b506111356004803603602081101561109557600080fd5b81019080803590602001906401000000008111156110b257600080fd5b8201836020820111156110c457600080fd5b803590602001918460208302840111640100000000831117156110e657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612e30565b005b34801561114357600080fd5b506111866004803603602081101561115a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f05565b6040518082815260200191505060405180910390f35b3480156111a857600080fd5b506111b1612f1d565b6040518082815260200191505060405180910390f35b3480156111d357600080fd5b50611200600480360360208110156111ea57600080fd5b8101908080359060200190929190505050612f23565b6040518082815260200191505060405180910390f35b34801561122257600080fd5b5061122b612f4a565b005b34801561123957600080fd5b506112666004803603602081101561125057600080fd5b8101908080359060200190929190505050613012565b60405180821515815260200191505060405180910390f35b34801561128a57600080fd5b506112d7600480360360408110156112a157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613032565b005b3480156112e557600080fd5b506112ee6130bc565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561132e578082015181840152602081019050611313565b50505050905090810190601f16801561135b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561137557600080fd5b506113d86004803603604081101561138c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061315e565b60405180821515815260200191505060405180910390f35b3480156113fc57600080fd5b5061150a600480360360a081101561141357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019064010000000081111561148457600080fd5b82018360208201111561149657600080fd5b803590602001918460018302840111640100000000831117156114b857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506131f2565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180614719602b913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b61167d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b6116ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b6116f881613597565b50565b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117935780601f1061176857610100808354040283529160200191611793565b820191906000526020600020905b81548152906001019060200180831161177657829003601f168201915b50505050509050919050565b6117c97fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b61183b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b6118657fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582611dc4565b50565b600060085460075401905090565b600560009054906101000a900460ff1681565b61041581565b600060046000838152602001908152602001600020600201549050919050565b8151835114611909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806148d76028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561198f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806147e36025913960400191505060405180910390fd5b6119976135b1565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806119dd57506119dc856119d76135b1565b61315e565b5b611a32576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806148086032913960400191505060405180910390fd5b6000611a3c6135b1565b9050611a4c8187878787876135b9565b60005b8451811015611c1d576000858281518110611a6657fe5b602002602001015190506000858381518110611a7e57fe5b60200260200101519050611b05816040518060600160405280602a815260200161483a602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135c19092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bbc816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461367b90919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050611a4f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611ccd578082015181840152602081019050611cb2565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611d0f578082015181840152602081019050611cf4565b5050505090500194505050505060405180910390a4611d32818787878787613703565b505050505050565b611d616004600084815260200190815260200160002060020154611d5c6135b1565b612588565b611db6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806146ea602f913960400191505060405180910390fd5b611dc08282613a92565b5050565b611dcc6135b1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614920602f913960400191505060405180910390fd5b611e598282613b26565b5050565b60075481565b60608151835114611ebf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806148ae6029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015611ed957600080fd5b50604051908082528060200260200182016040528015611f085781602001602082028036833780820191505090505b50905060005b8451811015611f6a57611f47858281518110611f2657fe5b6020026020010151858381518110611f3a57fe5b602002602001015161150c565b828281518110611f5357fe5b602002602001018181525050806001019050611f0e565b508091505092915050565b600560019054906101000a900460ff1681565b611fb27fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612024576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b61204e7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582611d3a565b50565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61209f7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612111576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600560009054906101000a900460ff1615600560006101000a81548160ff021916908315150217905550565b6121677fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b6121d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600a600082815260200190815260200160002060009054906101000a900460ff161561226d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f746f6b656e20616c7265616479206d696e74656400000000000000000000000081525060200191505060405180910390fd5b61041581106122e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f746f6b656e206973206e6f74206f6e207265736572766564537570706c79000081525060200191505060405180910390fd5b6123008282600160405180602001604052806000815250613bba565b6007600081548092919060010191905055506001600a600083815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61236c7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b6123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b7338c918db9dfb6cfc27f462ce1cd5c56072d0a4f173ffffffffffffffffffffffffffffffffffffffff166108fc6124336064612425600247613dbd90919063ffffffff16565b613e4390919063ffffffff16565b9081150290604051600060405180830381858888f1935050505061245657600080fd5b73febacbc8493100f2218940528b76ffc4b90265cf73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506124a857600080fd5b565b60006124d48260046000868152602001908152602001600020600001613ecc90919063ffffffff16565b905092915050565b61271081565b61250c7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b61257e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b8060068190555050565b60006125b28260046000868152602001908152602001600020600001613ee690919063ffffffff16565b905092915050565b6125e47fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612656576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b806009908051906020019061266c9291906144fa565b5050565b600560019054906101000a900460ff1680156126995750600560009054906101000a900460ff16155b1561273b5781600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612736576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806147906023913960400191505060405180910390fd5b6127be565b600560009054906101000a900460ff166127bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f73616c65206861736e277420737461727465640000000000000000000000000081525060200191505060405180910390fd5b5b60008211612834576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f7175616e746974792063616e6e6f74206265207a65726f00000000000000000081525060200191505060405180910390fd5b61271061285183612843611868565b61367b90919063ffffffff16565b11156128c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260088152602001807f736f6c64206f757400000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6128da82600654613dbd90919063ffffffff16565b341015806128f157506128f06000801b33612588565b5b612946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061476d6023913960400191505060405180910390fd5b60005b828110156129c45760006008546104150190506129788382600160405180602001604052806000815250613bba565b6008600081548092919060010191905055506001600a600083815260200190815260200160002060006101000a81548160ff021916908315150217905550508080600101915050612949565b50600560019054906101000a900460ff1680156129ee5750600560009054906101000a900460ff16155b15612a415781600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b5050565b612a6f7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612ae1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600a600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60065481565b6000801b81565b8173ffffffffffffffffffffffffffffffffffffffff16612b556135b1565b73ffffffffffffffffffffffffffffffffffffffff161415612bc2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806148856029913960400191505060405180910390fd5b8060026000612bcf6135b1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612c7c6135b1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b612cf97fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612d6b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b8051825114612de2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f696e707574206c656e677468206973206e6f7420657175616c0000000000000081525060200191505060405180910390fd5b60005b8251811015612e2b57612e1e838281518110612dfd57fe5b6020026020010151838381518110612e1157fe5b602002602001015161213d565b8080600101915050612de5565b505050565b612e5a7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612ecc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b60005b8151811015612f0157612ef4828281518110612ee757fe5b6020026020010151612a45565b8080600101915050612ecf565b5050565b600b6020528060005260406000206000915090505481565b60085481565b6000612f4360046000848152602001908152602001600020600001613f16565b9050919050565b612f747fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612fe6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff1615600560016101000a81548160ff021916908315150217905550565b600a6020528060005260406000206000915054906101000a900460ff1681565b61305960046000848152602001908152602001600020600201546130546135b1565b612588565b6130ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806147b36030913960400191505060405180910390fd5b6130b88282613b26565b5050565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156131545780601f1061312957610100808354040283529160200191613154565b820191906000526020600020905b81548152906001019060200180831161313757829003601f168201915b5050505050905090565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613278576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806147e36025913960400191505060405180910390fd5b6132806135b1565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806132c657506132c5856132c06135b1565b61315e565b5b61331b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806147446029913960400191505060405180910390fd5b60006133256135b1565b905061334581878761333688613f2b565b61333f88613f2b565b876135b9565b6133c2836040518060600160405280602a815260200161483a602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135c19092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613479836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461367b90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a461355f818787878787613f9b565b505050505050565b600061358f836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6142a8565b905092915050565b80600390805190602001906135ad9291906144fa565b5050565b600033905090565b505050505050565b600083831115829061366e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613633578082015181840152602081019050613618565b50505050905090810190601f1680156136605780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b6000808284019050838110156136f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6137228473ffffffffffffffffffffffffffffffffffffffff16614318565b15613a8a578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156137da5780820151818401526020810190506137bf565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561381c578082015181840152602081019050613801565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561385b578082015181840152602081019050613840565b50505050905090810190601f1680156138885780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156138ad57600080fd5b505af19250505080156138e157506040513d60208110156138cd57600080fd5b810190808051906020019092919050505060015b6139eb576138ed6145b5565b806138f8575061399a565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561395f578082015181840152602081019050613944565b50505050905090810190601f16801561398c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603481526020018061466c6034913960400191505060405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613a88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806146c26028913960400191505060405180910390fd5b505b505050505050565b613aba816004600085815260200190815260200160002060000161356790919063ffffffff16565b15613b2257613ac76135b1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b613b4e816004600085815260200190815260200160002060000161432b90919063ffffffff16565b15613bb657613b5b6135b1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613c40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806148ff6021913960400191505060405180910390fd5b6000613c4a6135b1565b9050613c6b81600087613c5c88613f2b565b613c6588613f2b565b876135b9565b613cce836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461367b90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4613db681600087878787613f9b565b5050505050565b600080831415613dd05760009050613e3d565b6000828402905082848281613de157fe5b0414613e38576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806148646021913960400191505060405180910390fd5b809150505b92915050565b6000808211613eba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381613ec357fe5b04905092915050565b6000613edb836000018361435b565b60001c905092915050565b6000613f0e836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6143de565b905092915050565b6000613f2482600001614401565b9050919050565b606080600167ffffffffffffffff81118015613f4657600080fd5b50604051908082528060200260200182016040528015613f755781602001602082028036833780820191505090505b5090508281600081518110613f8657fe5b60200260200101818152505080915050919050565b613fba8473ffffffffffffffffffffffffffffffffffffffff16614318565b156142a0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614073578082015181840152602081019050614058565b50505050905090810190601f1680156140a05780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156140c357600080fd5b505af19250505080156140f757506040513d60208110156140e357600080fd5b810190808051906020019092919050505060015b614201576141036145b5565b8061410e57506141b0565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561417557808201518184015260208101905061415a565b50505050905090810190601f1680156141a25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603481526020018061466c6034913960400191505060405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461429e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806146c26028913960400191505060405180910390fd5b505b505050505050565b60006142b483836143de565b61430d578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050614312565b600090505b92915050565b600080823b905060008111915050919050565b6000614353836000018373ffffffffffffffffffffffffffffffffffffffff1660001b614412565b905092915050565b6000818360000180549050116143bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806146a06022913960400191505060405180910390fd5b8260000182815481106143cb57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020549050600081146144ee576000600182039050600060018660000180549050039050600086600001828154811061445d57fe5b906000526020600020015490508087600001848154811061447a57fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806144b257fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506144f4565b60009150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061453b57805160ff1916838001178555614569565b82800160010185558215614569579182015b8281111561456857825182559160200191906001019061454d565b5b509050614576919061457a565b5090565b5b8082111561459357600081600090555060010161457b565b5090565b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d10156145c557614668565b60046000803e6145d66000516145a8565b6308c379a081146145e75750614668565b60405160043d036004823e80513d602482011167ffffffffffffffff8211171561461357505050614668565b808201805167ffffffffffffffff811115614632575050505050614668565b8060208301013d850181111561464d57505050505050614668565b61465682614597565b60208401016040528296505050505050505b9056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656465746865722076616c75652073656e742069732062656c6f7720746865207072696365616d6f756e74206e6f7420726573657276656420746f20746869732061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220fd01512ee5216b93f205435fdd5974530a194c8c6f05575f2fdcf7aff81421ea64736f6c63430007030033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f696d672e746865626c6f636b70756e6b732e636f6d2f7b69647d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f62616679626569676d32376b72693572763770766d6f7273767966376a70327a7279786f6e716e6c7536376e786b36666465363679666875736375000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102455760003560e01c80639010d07c11610139578063a50795d6116100b6578063ca3cb5221161007a578063ca3cb52214611216578063d1be30911461122d578063d547741f1461127e578063e8a3d485146112d9578063e985e9c514611369578063f242432a146113f057610245565b8063a50795d614610f19578063abdb71d914611072578063bfc3bb7214611137578063c1bd8cf91461119c578063ca15c873146111c757610245565b806394bf804d116100fd57806394bf804d14610dc757806397f22ea914610e15578063a035b1fe14610e66578063a217fddf14610e91578063a22cb46514610ebc57610245565b80639010d07c14610bb9578063902d55a514610c2857806391b7f5ed14610c5357806391d1485414610c8e578063938e3d7b14610cff57610245565b80632f2ff15d116101c7578063704802751161018b5780637048027514610ab457806375b238fc14610b055780637d8966e414610b305780637de55fe114610b47578063853828b614610ba257610245565b80632f2ff15d146107f857806336568abe1461085357806344d19d2b146108ae5780634e1273f4146108d95780636a5928f514610a8757610245565b806318160ddd1161020e57806318160ddd146104f65780631c8b232d146105215780631d2e3dc01461054e578063248a9ca3146105795780632eb2c2d6146105c857610245565b8062fdd58e1461024a57806301ffc9a7146102b957806302fe5305146103295780630e89341c146103f15780631785f53c146104a5575b600080fd5b34801561025657600080fd5b506102a36004803603604081101561026d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061150c565b6040518082815260200191505060405180910390f35b3480156102c557600080fd5b50610311600480360360208110156102dc57600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291905050506115ec565b60405180821515815260200191505060405180910390f35b34801561033557600080fd5b506103ef6004803603602081101561034c57600080fd5b810190808035906020019064010000000081111561036957600080fd5b82018360208201111561037b57600080fd5b8035906020019184600183028401116401000000008311171561039d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611653565b005b3480156103fd57600080fd5b5061042a6004803603602081101561041457600080fd5b81019080803590602001909291905050506116fb565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561046a57808201518184015260208101905061044f565b50505050905090810190601f1680156104975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104b157600080fd5b506104f4600480360360208110156104c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061179f565b005b34801561050257600080fd5b5061050b611868565b6040518082815260200191505060405180910390f35b34801561052d57600080fd5b50610536611876565b60405180821515815260200191505060405180910390f35b34801561055a57600080fd5b50610563611889565b6040518082815260200191505060405180910390f35b34801561058557600080fd5b506105b26004803603602081101561059c57600080fd5b810190808035906020019092919050505061188f565b6040518082815260200191505060405180910390f35b3480156105d457600080fd5b506107f6600480360360a08110156105eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561064857600080fd5b82018360208201111561065a57600080fd5b8035906020019184602083028401116401000000008311171561067c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156106dc57600080fd5b8201836020820111156106ee57600080fd5b8035906020019184602083028401116401000000008311171561071057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561077057600080fd5b82018360208201111561078257600080fd5b803590602001918460018302840111640100000000831117156107a457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506118af565b005b34801561080457600080fd5b506108516004803603604081101561081b57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d3a565b005b34801561085f57600080fd5b506108ac6004803603604081101561087657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dc4565b005b3480156108ba57600080fd5b506108c3611e5d565b6040518082815260200191505060405180910390f35b3480156108e557600080fd5b50610a30600480360360408110156108fc57600080fd5b810190808035906020019064010000000081111561091957600080fd5b82018360208201111561092b57600080fd5b8035906020019184602083028401116401000000008311171561094d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156109ad57600080fd5b8201836020820111156109bf57600080fd5b803590602001918460208302840111640100000000831117156109e157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050611e63565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610a73578082015181840152602081019050610a58565b505050509050019250505060405180910390f35b348015610a9357600080fd5b50610a9c611f75565b60405180821515815260200191505060405180910390f35b348015610ac057600080fd5b50610b0360048036036020811015610ad757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f88565b005b348015610b1157600080fd5b50610b1a612051565b6040518082815260200191505060405180910390f35b348015610b3c57600080fd5b50610b45612075565b005b348015610b5357600080fd5b50610ba060048036036040811015610b6a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061213d565b005b348015610bae57600080fd5b50610bb7612342565b005b348015610bc557600080fd5b50610bfc60048036036040811015610bdc57600080fd5b8101908080359060200190929190803590602001909291905050506124aa565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610c3457600080fd5b50610c3d6124dc565b6040518082815260200191505060405180910390f35b348015610c5f57600080fd5b50610c8c60048036036020811015610c7657600080fd5b81019080803590602001909291905050506124e2565b005b348015610c9a57600080fd5b50610ce760048036036040811015610cb157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612588565b60405180821515815260200191505060405180910390f35b348015610d0b57600080fd5b50610dc560048036036020811015610d2257600080fd5b8101908080359060200190640100000000811115610d3f57600080fd5b820183602082011115610d5157600080fd5b80359060200191846001830284011164010000000083111715610d7357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506125ba565b005b610e1360048036036040811015610ddd57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612670565b005b348015610e2157600080fd5b50610e6460048036036020811015610e3857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a45565b005b348015610e7257600080fd5b50610e7b612b29565b6040518082815260200191505060405180910390f35b348015610e9d57600080fd5b50610ea6612b2f565b6040518082815260200191505060405180910390f35b348015610ec857600080fd5b50610f1760048036036040811015610edf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612b36565b005b348015610f2557600080fd5b5061107060048036036040811015610f3c57600080fd5b8101908080359060200190640100000000811115610f5957600080fd5b820183602082011115610f6b57600080fd5b80359060200191846020830284011164010000000083111715610f8d57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610fed57600080fd5b820183602082011115610fff57600080fd5b8035906020019184602083028401116401000000008311171561102157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612ccf565b005b34801561107e57600080fd5b506111356004803603602081101561109557600080fd5b81019080803590602001906401000000008111156110b257600080fd5b8201836020820111156110c457600080fd5b803590602001918460208302840111640100000000831117156110e657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612e30565b005b34801561114357600080fd5b506111866004803603602081101561115a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f05565b6040518082815260200191505060405180910390f35b3480156111a857600080fd5b506111b1612f1d565b6040518082815260200191505060405180910390f35b3480156111d357600080fd5b50611200600480360360208110156111ea57600080fd5b8101908080359060200190929190505050612f23565b6040518082815260200191505060405180910390f35b34801561122257600080fd5b5061122b612f4a565b005b34801561123957600080fd5b506112666004803603602081101561125057600080fd5b8101908080359060200190929190505050613012565b60405180821515815260200191505060405180910390f35b34801561128a57600080fd5b506112d7600480360360408110156112a157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613032565b005b3480156112e557600080fd5b506112ee6130bc565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561132e578082015181840152602081019050611313565b50505050905090810190601f16801561135b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561137557600080fd5b506113d86004803603604081101561138c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061315e565b60405180821515815260200191505060405180910390f35b3480156113fc57600080fd5b5061150a600480360360a081101561141357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019064010000000081111561148457600080fd5b82018360208201111561149657600080fd5b803590602001918460018302840111640100000000831117156114b857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506131f2565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180614719602b913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b61167d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b6116ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b6116f881613597565b50565b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117935780601f1061176857610100808354040283529160200191611793565b820191906000526020600020905b81548152906001019060200180831161177657829003601f168201915b50505050509050919050565b6117c97fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b61183b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b6118657fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582611dc4565b50565b600060085460075401905090565b600560009054906101000a900460ff1681565b61041581565b600060046000838152602001908152602001600020600201549050919050565b8151835114611909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806148d76028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561198f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806147e36025913960400191505060405180910390fd5b6119976135b1565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806119dd57506119dc856119d76135b1565b61315e565b5b611a32576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806148086032913960400191505060405180910390fd5b6000611a3c6135b1565b9050611a4c8187878787876135b9565b60005b8451811015611c1d576000858281518110611a6657fe5b602002602001015190506000858381518110611a7e57fe5b60200260200101519050611b05816040518060600160405280602a815260200161483a602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135c19092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bbc816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461367b90919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050611a4f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611ccd578082015181840152602081019050611cb2565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611d0f578082015181840152602081019050611cf4565b5050505090500194505050505060405180910390a4611d32818787878787613703565b505050505050565b611d616004600084815260200190815260200160002060020154611d5c6135b1565b612588565b611db6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806146ea602f913960400191505060405180910390fd5b611dc08282613a92565b5050565b611dcc6135b1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614920602f913960400191505060405180910390fd5b611e598282613b26565b5050565b60075481565b60608151835114611ebf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806148ae6029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015611ed957600080fd5b50604051908082528060200260200182016040528015611f085781602001602082028036833780820191505090505b50905060005b8451811015611f6a57611f47858281518110611f2657fe5b6020026020010151858381518110611f3a57fe5b602002602001015161150c565b828281518110611f5357fe5b602002602001018181525050806001019050611f0e565b508091505092915050565b600560019054906101000a900460ff1681565b611fb27fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612024576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b61204e7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582611d3a565b50565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61209f7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612111576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600560009054906101000a900460ff1615600560006101000a81548160ff021916908315150217905550565b6121677fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b6121d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600a600082815260200190815260200160002060009054906101000a900460ff161561226d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f746f6b656e20616c7265616479206d696e74656400000000000000000000000081525060200191505060405180910390fd5b61041581106122e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f746f6b656e206973206e6f74206f6e207265736572766564537570706c79000081525060200191505060405180910390fd5b6123008282600160405180602001604052806000815250613bba565b6007600081548092919060010191905055506001600a600083815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61236c7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b6123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b7338c918db9dfb6cfc27f462ce1cd5c56072d0a4f173ffffffffffffffffffffffffffffffffffffffff166108fc6124336064612425600247613dbd90919063ffffffff16565b613e4390919063ffffffff16565b9081150290604051600060405180830381858888f1935050505061245657600080fd5b73febacbc8493100f2218940528b76ffc4b90265cf73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506124a857600080fd5b565b60006124d48260046000868152602001908152602001600020600001613ecc90919063ffffffff16565b905092915050565b61271081565b61250c7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b61257e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b8060068190555050565b60006125b28260046000868152602001908152602001600020600001613ee690919063ffffffff16565b905092915050565b6125e47fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612656576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b806009908051906020019061266c9291906144fa565b5050565b600560019054906101000a900460ff1680156126995750600560009054906101000a900460ff16155b1561273b5781600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612736576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806147906023913960400191505060405180910390fd5b6127be565b600560009054906101000a900460ff166127bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f73616c65206861736e277420737461727465640000000000000000000000000081525060200191505060405180910390fd5b5b60008211612834576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f7175616e746974792063616e6e6f74206265207a65726f00000000000000000081525060200191505060405180910390fd5b61271061285183612843611868565b61367b90919063ffffffff16565b11156128c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260088152602001807f736f6c64206f757400000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6128da82600654613dbd90919063ffffffff16565b341015806128f157506128f06000801b33612588565b5b612946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061476d6023913960400191505060405180910390fd5b60005b828110156129c45760006008546104150190506129788382600160405180602001604052806000815250613bba565b6008600081548092919060010191905055506001600a600083815260200190815260200160002060006101000a81548160ff021916908315150217905550508080600101915050612949565b50600560019054906101000a900460ff1680156129ee5750600560009054906101000a900460ff16155b15612a415781600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b5050565b612a6f7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612ae1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600a600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60065481565b6000801b81565b8173ffffffffffffffffffffffffffffffffffffffff16612b556135b1565b73ffffffffffffffffffffffffffffffffffffffff161415612bc2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806148856029913960400191505060405180910390fd5b8060026000612bcf6135b1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612c7c6135b1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b612cf97fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612d6b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b8051825114612de2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f696e707574206c656e677468206973206e6f7420657175616c0000000000000081525060200191505060405180910390fd5b60005b8251811015612e2b57612e1e838281518110612dfd57fe5b6020026020010151838381518110612e1157fe5b602002602001015161213d565b8080600101915050612de5565b505050565b612e5a7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612ecc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b60005b8151811015612f0157612ef4828281518110612ee757fe5b6020026020010151612a45565b8080600101915050612ecf565b5050565b600b6020528060005260406000206000915090505481565b60085481565b6000612f4360046000848152602001908152602001600020600001613f16565b9050919050565b612f747fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533612588565b612fe6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5265737472696374656420746f2061646d696e732e000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff1615600560016101000a81548160ff021916908315150217905550565b600a6020528060005260406000206000915054906101000a900460ff1681565b61305960046000848152602001908152602001600020600201546130546135b1565b612588565b6130ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806147b36030913960400191505060405180910390fd5b6130b88282613b26565b5050565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156131545780601f1061312957610100808354040283529160200191613154565b820191906000526020600020905b81548152906001019060200180831161313757829003601f168201915b5050505050905090565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613278576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806147e36025913960400191505060405180910390fd5b6132806135b1565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806132c657506132c5856132c06135b1565b61315e565b5b61331b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806147446029913960400191505060405180910390fd5b60006133256135b1565b905061334581878761333688613f2b565b61333f88613f2b565b876135b9565b6133c2836040518060600160405280602a815260200161483a602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135c19092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613479836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461367b90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a461355f818787878787613f9b565b505050505050565b600061358f836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6142a8565b905092915050565b80600390805190602001906135ad9291906144fa565b5050565b600033905090565b505050505050565b600083831115829061366e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613633578082015181840152602081019050613618565b50505050905090810190601f1680156136605780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b6000808284019050838110156136f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6137228473ffffffffffffffffffffffffffffffffffffffff16614318565b15613a8a578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156137da5780820151818401526020810190506137bf565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561381c578082015181840152602081019050613801565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561385b578082015181840152602081019050613840565b50505050905090810190601f1680156138885780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156138ad57600080fd5b505af19250505080156138e157506040513d60208110156138cd57600080fd5b810190808051906020019092919050505060015b6139eb576138ed6145b5565b806138f8575061399a565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561395f578082015181840152602081019050613944565b50505050905090810190601f16801561398c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603481526020018061466c6034913960400191505060405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613a88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806146c26028913960400191505060405180910390fd5b505b505050505050565b613aba816004600085815260200190815260200160002060000161356790919063ffffffff16565b15613b2257613ac76135b1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b613b4e816004600085815260200190815260200160002060000161432b90919063ffffffff16565b15613bb657613b5b6135b1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613c40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806148ff6021913960400191505060405180910390fd5b6000613c4a6135b1565b9050613c6b81600087613c5c88613f2b565b613c6588613f2b565b876135b9565b613cce836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461367b90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4613db681600087878787613f9b565b5050505050565b600080831415613dd05760009050613e3d565b6000828402905082848281613de157fe5b0414613e38576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806148646021913960400191505060405180910390fd5b809150505b92915050565b6000808211613eba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381613ec357fe5b04905092915050565b6000613edb836000018361435b565b60001c905092915050565b6000613f0e836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6143de565b905092915050565b6000613f2482600001614401565b9050919050565b606080600167ffffffffffffffff81118015613f4657600080fd5b50604051908082528060200260200182016040528015613f755781602001602082028036833780820191505090505b5090508281600081518110613f8657fe5b60200260200101818152505080915050919050565b613fba8473ffffffffffffffffffffffffffffffffffffffff16614318565b156142a0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614073578082015181840152602081019050614058565b50505050905090810190601f1680156140a05780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156140c357600080fd5b505af19250505080156140f757506040513d60208110156140e357600080fd5b810190808051906020019092919050505060015b614201576141036145b5565b8061410e57506141b0565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561417557808201518184015260208101905061415a565b50505050905090810190601f1680156141a25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603481526020018061466c6034913960400191505060405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461429e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806146c26028913960400191505060405180910390fd5b505b505050505050565b60006142b483836143de565b61430d578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050614312565b600090505b92915050565b600080823b905060008111915050919050565b6000614353836000018373ffffffffffffffffffffffffffffffffffffffff1660001b614412565b905092915050565b6000818360000180549050116143bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806146a06022913960400191505060405180910390fd5b8260000182815481106143cb57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020549050600081146144ee576000600182039050600060018660000180549050039050600086600001828154811061445d57fe5b906000526020600020015490508087600001848154811061447a57fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806144b257fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506144f4565b60009150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061453b57805160ff1916838001178555614569565b82800160010185558215614569579182015b8281111561456857825182559160200191906001019061454d565b5b509050614576919061457a565b5090565b5b8082111561459357600081600090555060010161457b565b5090565b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d10156145c557614668565b60046000803e6145d66000516145a8565b6308c379a081146145e75750614668565b60405160043d036004823e80513d602482011167ffffffffffffffff8211171561461357505050614668565b808201805167ffffffffffffffff811115614632575050505050614668565b8060208301013d850181111561464d57505050505050614668565b61465682614597565b60208401016040528296505050505050505b9056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656465746865722076616c75652073656e742069732062656c6f7720746865207072696365616d6f756e74206e6f7420726573657276656420746f20746869732061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220fd01512ee5216b93f205435fdd5974530a194c8c6f05575f2fdcf7aff81421ea64736f6c63430007030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f696d672e746865626c6f636b70756e6b732e636f6d2f7b69647d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f62616679626569676d32376b72693572763770766d6f7273767966376a70327a7279786f6e716e6c7536376e786b36666465363679666875736375000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : uri (string): https://img.theblockpunks.com/{id}
Arg [1] : __contractUri (string): ipfs://bafybeigm27kri5rv7pvmorsvyf7jp2zryxonqnlu67nxk6fde66yfhuscu
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [3] : 68747470733a2f2f696d672e746865626c6f636b70756e6b732e636f6d2f7b69
Arg [4] : 647d000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [6] : 697066733a2f2f62616679626569676d32376b72693572763770766d6f727376
Arg [7] : 7966376a70327a7279786f6e716e6c7536376e786b3666646536367966687573
Arg [8] : 6375000000000000000000000000000000000000000000000000000000000000
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.