ERC-721
Overview
Max Total Supply
1,050 AJC
Holders
594
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 AJCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AJCTheAlbum
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXl.oNMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK:.cXMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMWXKOxdxkkxdONWMMMMMMMMMMMMMMMMMMMMMWO,.lXMMMMMMMMMMMMMW MMMMMMMMMMMMMMMMMMMMMWXkl;.. 'cx0XMMMMMMMMMMMMMMMMMXl..oNMMMMMMMMMMMN0d: MMMMMMMMMMMMMMMMMMMWOc. .,OWMMMMMMMMMMMMMWk, 'kWMMMMMMMMWXOl,..: MMMMMMMMMMMMMMMMMWKc. lNMMMMMMMMMMMMKc. :KMMMMMMMNKxc'..;dKW MMMMMMMMMMMMMMMMWk' .kWMMMMMMMMMWk, .dNMMMMWXOo,...:xKWMMM MMMMMMMMMMMMMMMNd. 'OMMMMMMMMNd. ,OWMMWXxc'..,lkXWMMMMNK MMMMMMMMMMMMMW0:. :XMMMMMMXc..cKMWKx:...;d0NMMMMN0xc;; MMMMMMMMMMMMM0, ;OWMMM0; .dXXx:..'cxKWMMMWKxl,';lkX MMMMMMMMMMMMNl .xWMWO' ,xx:..'lkXWMMWXko;',cx0NMMM MMMMMMMMMMMMk. .OMWx. .,..'lONMMWXOo:,,:d0NWWNKOxd MMMMMMMMMMMK; '0Nd. 'lONMMWKxc,';oOXWN0xlc:cldk MMMMMMMMMMXc 'Ox'.'ckNMMWKd:,;lx0KOxl:,,:lx0NWMM MMMMMMMMMNo 'OK0KNWMMNklcldOOxl:,,;cdOXWWWNK000 MMMMMMMMMO. .kNNWMMMMN0OOxl:::lxO0K0kdoc:::cldO MMMMMMMMNl .'',cdXMMWOl:clolc:;,,,,;clxOXNWMM MMMMMMMM0' 'xNWOllccclodkOO0KKKK0OOkxxx MMMMMMMWd. .xWNKkoooolcc:;;;;;::clodxO MMMMMMM0, :XMWK00OkxddxkO0KXNWMMMMMM MMMMMMNc .kWMMW0xdollccccclloodxk0X MMMMMMK, '0MXOddooooooodxkO0000KXN MMMMMM0' .dWN0kxdddoolllloodxOKNWM MMMMMM0' .. cNMMMMMMMMMMMWNXK0OOO0XN MMMMMMX: .,;;;;;;:c;. '0MMMMMMMMMMMMMMMMMMMMMM MMMMMMM0:';;;;;,''',,;;:;,. cK0o' oWMMMMMMMMMMMMMWWNNXKOk MMMMMMMW0o;''',;;;;,,'. .xWMXd' .oK0XWWNXK0kdol:;,'... MMMMMMMK; :XMMMk:. ..';cll,.';,'.. MMMMMMNl ;KMMMNXOoc::::cc::::;. MMMMMMO. ..''.....',,,:odolc:::;,,'... MMMMMNc .',;;;:::;;;;,'.. ...,;:cl MMMMMK, 'c' .:loxkO00KNWWMMM MMMMMO. .l: ..'''',,,,;;. ,0MMMMMMMMMMMMMM MMMMMk. .od. ..''''''',:odxkOO00o,,'......,ll;'......:KMMMMMMMMMMMMMM MMMMMk. .lxo;,:ccc:;;,....'kWMMMMMK, .;:cc:;:oONMMMMMMMMMMMMMM MMMMMO. .::;;. oWMMMMMO. .:0WMMMMMMMMMMMM MMMMMX: .xMMMMMMx. .xNMMMMMMMMMMM MMMMMWk. .OMMMMMWo :KMMMMMMMMMM MMMMMMNl lNMMMWWO' ;0MMMMMMMMM MMMMMMMK; ,0MMMMXk; lWMMMMMMMM */ pragma solidity ^0.8.0; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/access/AccessControl.sol'; import 'erc721a/contracts/ERC721A.sol'; import './lib/MerkleDistributor.sol'; contract AJCTheAlbum is ERC721A, MerkleDistributor, ReentrancyGuard, AccessControl { bytes32 public constant SUPPORT_ROLE = keccak256('SUPPORT'); uint256 public constant MAX_SUPPLY = 5555; uint256 public constant MAX_ALLOWLIST_MINT = 10; uint256 public constant MAX_PUBLIC_MINT = 10; uint256 public constant MAX_RESERVE_SUPPLY = 100; uint256 public constant PRICE_PER_TOKEN = 0.05 ether; string public provenance; string private _baseURIextended; bool public saleActive; uint256 public reserveSupply; address payable public immutable shareholderAddress; constructor(address payable shareholderAddress_) ERC721A("AJC - The Album", "AJC") { require(shareholderAddress_ != address(0)); // set immutable variables shareholderAddress = shareholderAddress_; // setup roles _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(SUPPORT_ROLE, msg.sender); } modifier ableToMint(uint256 numberOfTokens) { require(totalSupply() + numberOfTokens <= MAX_SUPPLY, 'Purchase would exceed max tokens'); _; } modifier isPublicSaleActive() { require(saleActive, 'Public sale is not active'); _; } /** * admin */ function devMint(uint256 numberOfTokens) external onlyRole(SUPPORT_ROLE) ableToMint(numberOfTokens) nonReentrant { require(reserveSupply + numberOfTokens <= MAX_RESERVE_SUPPLY, 'Number would exceed max reserve supply'); reserveSupply += numberOfTokens; _safeMint(msg.sender, numberOfTokens); } function setSaleActive(bool state) external onlyRole(SUPPORT_ROLE) { saleActive = state; } /** * allow list */ function setAllowListActive(bool allowListActive) external onlyRole(SUPPORT_ROLE) { _setAllowListActive(allowListActive); } function setAllowList(bytes32 merkleRoot) external onlyRole(SUPPORT_ROLE) { _setAllowList(merkleRoot); } /** * tokens */ function setBaseURI(string memory baseURI_) external onlyRole(SUPPORT_ROLE) { _baseURIextended = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return _baseURIextended; } function setProvenance(string memory provenance_) external onlyRole(SUPPORT_ROLE) { provenance = provenance_; } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721A) returns (bool) { return super.supportsInterface(interfaceId); } /** * public */ function mintAllowList(uint256 numberOfTokens, bytes32[] memory merkleProof) external payable isAllowListActive ableToClaim(msg.sender, merkleProof) tokensAvailable(msg.sender, numberOfTokens, MAX_ALLOWLIST_MINT) ableToMint(numberOfTokens) nonReentrant { require(numberOfTokens * PRICE_PER_TOKEN == msg.value, 'Ether value sent is not correct'); _setAllowListMinted(msg.sender, numberOfTokens); _safeMint(msg.sender, numberOfTokens); } function mint(uint256 numberOfTokens) external payable isPublicSaleActive ableToMint(numberOfTokens) nonReentrant { require(numberOfTokens <= MAX_PUBLIC_MINT, 'Exceeded max token purchase'); require(numberOfTokens * PRICE_PER_TOKEN == msg.value, 'Ether value sent is not correct'); _safeMint(msg.sender, numberOfTokens); } /** * withdraw */ function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) nonReentrant { (bool success, ) = shareholderAddress.call{value: address(this).balance}(''); require(success, 'Transfer failed.'); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). * * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal currentIndex; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), 'ERC721A: global index out of bounds'); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), 'ERC721A: owner index out of bounds'); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert('ERC721A: unable to get token of owner by index'); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), 'ERC721A: balance query for the zero address'); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), 'ERC721A: number minted query for the zero address'); return uint256(_addressData[owner].numberMinted); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), 'ERC721A: owner query for nonexistent token'); unchecked { for (uint256 curr = tokenId; curr >= 0; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } revert('ERC721A: unable to determine the owner of token'); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, 'ERC721A: approval to current owner'); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), 'ERC721A: approve caller is not owner nor approved for all' ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), 'ERC721A: approved query for nonexistent token'); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), 'ERC721A: approve to caller'); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), 'ERC721A: transfer to non ERC721Receiver implementer' ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = currentIndex; require(to != address(0), 'ERC721A: mint to the zero address'); require(quantity != 0, 'ERC721A: quantity must be greater than 0'); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1 unchecked { _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe) { require( _checkOnERC721Received(address(0), to, updatedIndex, _data), 'ERC721A: transfer to non ERC721Receiver implementer' ); } updatedIndex++; } currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, 'ERC721A: transfer caller is not owner nor approved'); require(prevOwnership.addr == from, 'ERC721A: transfer from incorrect owner'); require(to != address(0), 'ERC721A: transfer to the zero address'); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert('ERC721A: transfer to non ERC721Receiver implementer'); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; contract MerkleDistributor { bytes32 public merkleRoot; bool public allowListActive = false; mapping(address => uint256) private _allowListNumMinted; /** * @dev emitted when an account has claimed some tokens */ event Claimed(address indexed account, uint256 amount); /** * @dev emitted when the merkle root has changed */ event MerkleRootChanged(bytes32 merkleRoot); /** * @dev throws when allow list is not active */ modifier isAllowListActive() { require(allowListActive, 'Allow list is not active'); _; } /** * @dev throws when number of tokens exceeds total token amount */ modifier tokensAvailable( address to, uint256 numberOfTokens, uint256 totalTokenAmount ) { uint256 claimed = getAllowListMinted(to); require(claimed + numberOfTokens <= totalTokenAmount, 'Purchase would exceed number of tokens allotted'); _; } /** * @dev throws when parameters sent by claimer is incorrect */ modifier ableToClaim(address claimer, bytes32[] memory proof) { require(onAllowList(claimer, proof), 'Not on allow list'); _; } /** * @dev sets the state of the allow list */ function _setAllowListActive(bool allowListActive_) internal virtual { allowListActive = allowListActive_; } /** * @dev sets the merkle root */ function _setAllowList(bytes32 merkleRoot_) internal virtual { merkleRoot = merkleRoot_; emit MerkleRootChanged(merkleRoot); } /** * @dev adds the number of tokens to the incoming address */ function _setAllowListMinted(address to, uint256 numberOfTokens) internal virtual { _allowListNumMinted[to] += numberOfTokens; emit Claimed(to, numberOfTokens); } /** * @dev gets the number of tokens from the address */ function getAllowListMinted(address from) public view virtual returns (uint256) { return _allowListNumMinted[from]; } /** * @dev checks if the claimer has a valid proof */ function onAllowList(address claimer, bytes32[] memory proof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(claimer)); return MerkleProof.verify(proof, merkleRoot, leaf); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"shareholderAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRootChanged","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWLIST_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPORT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getAllowListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveSupply","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowListActive","type":"bool"}],"name":"setAllowListActive","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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance_","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareholderAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526008805460ff191690553480156200001b57600080fd5b5060405162003409380380620034098339810160408190526200003e916200026e565b604080518082018252600f81526e414a43202d2054686520416c62756d60881b602080830191825283518085019094526003845262414a4360e81b9084015281519192916200009091600191620001c8565b508051620000a6906002906020840190620001c8565b50506001600a55506001600160a01b038116620000c257600080fd5b6001600160601b0319606082901b16608052620000e160003362000114565b6200010d7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b3362000114565b50620002dd565b62000120828262000124565b5050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1662000120576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001843390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001d690620002a0565b90600052602060002090601f016020900481019282620001fa576000855562000245565b82601f106200021557805160ff191683800117855562000245565b8280016001018555821562000245579182015b828111156200024557825182559160200191906001019062000228565b506200025392915062000257565b5090565b5b8082111562000253576000815560010162000258565b6000602082840312156200028157600080fd5b81516001600160a01b03811681146200029957600080fd5b9392505050565b600181811c90821680620002b557607f821691505b60208210811415620002d757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c61310662000303600039600081816106f9015261105001526131066000f3fe6080604052600436106102f25760003560e01c80636352211e1161018f57806395d89b41116100e1578063b88d4fde1161008a578063e985e9c511610064578063e985e9c514610841578063fa05a6571461088a578063ffe630b51461089d57600080fd5b8063b88d4fde146107e1578063c87b56dd14610801578063d547741f1461082157600080fd5b8063a22cb465116100bb578063a22cb4651461078c578063a4a5e763146107ac578063b32c5680146107c157600080fd5b806395d89b411461074f578063a0712d6814610764578063a217fddf1461077757600080fd5b8063833b94991161014357806391d148541161011d57806391d14854146106a1578063943d40e7146106e757806394b059ab1461071b57600080fd5b8063833b949914610646578063841718a61461066157806384584d071461068157600080fd5b806368428a1b1161017457806368428a1b1461060c57806370a082311461062657806372f85d51146105f757600080fd5b80636352211e146105d757806365f13097146105f757600080fd5b80632f745c59116102485780633ccfd60b116101fc5780634f6ccce7116101d65780634f6ccce71461056157806355f804b3146105815780635ea1ef52146105a157600080fd5b80633ccfd60b1461051257806342842e0e14610527578063457dbf211461054757600080fd5b806336568abe1161022d57806336568abe146104b2578063375a069a146104d25780633a73c58d146104f257600080fd5b80632f745c591461047c57806332cb6b0c1461049c57600080fd5b80630f7309e8116102aa578063248a9ca311610284578063248a9ca3146104165780632eb4a7ab146104465780632f2ff15d1461045c57600080fd5b80630f7309e8146103cc57806318160ddd146103e157806323b872dd146103f657600080fd5b806306fdde03116102db57806306fdde0314610350578063081812fc14610372578063095ea7b3146103aa57600080fd5b806301ffc9a7146102f757806303d41eb61461032c575b600080fd5b34801561030357600080fd5b50610317610312366004612d40565b6108bd565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b50610342600f5481565b604051908152602001610323565b34801561035c57600080fd5b506103656108ce565b6040516103239190612f0c565b34801561037e57600080fd5b5061039261038d366004612d04565b610960565b6040516001600160a01b039091168152602001610323565b3480156103b657600080fd5b506103ca6103c5366004612cbf565b610a00565b005b3480156103d857600080fd5b50610365610b33565b3480156103ed57600080fd5b50600054610342565b34801561040257600080fd5b506103ca610411366004612b8f565b610bc1565b34801561042257600080fd5b50610342610431366004612d04565b6000908152600b602052604090206001015490565b34801561045257600080fd5b5061034260075481565b34801561046857600080fd5b506103ca610477366004612d1d565b610bcc565b34801561048857600080fd5b50610342610497366004612cbf565b610bf2565b3480156104a857600080fd5b506103426115b381565b3480156104be57600080fd5b506103ca6104cd366004612d1d565b610d79565b3480156104de57600080fd5b506103ca6104ed366004612d04565b610e05565b3480156104fe57600080fd5b506103ca61050d366004612ce9565b610f9f565b34801561051e57600080fd5b506103ca610fdc565b34801561053357600080fd5b506103ca610542366004612b8f565b61110a565b34801561055357600080fd5b506008546103179060ff1681565b34801561056d57600080fd5b5061034261057c366004612d04565b611125565b34801561058d57600080fd5b506103ca61059c366004612d7a565b6111a1565b3480156105ad57600080fd5b506103426105bc366004612b41565b6001600160a01b031660009081526009602052604090205490565b3480156105e357600080fd5b506103926105f2366004612d04565b6111df565b34801561060357600080fd5b50610342600a81565b34801561061857600080fd5b50600e546103179060ff1681565b34801561063257600080fd5b50610342610641366004612b41565b6111f1565b34801561065257600080fd5b5061034266b1a2bc2ec5000081565b34801561066d57600080fd5b506103ca61067c366004612ce9565b61129d565b34801561068d57600080fd5b506103ca61069c366004612d04565b6112dc565b3480156106ad57600080fd5b506103176106bc366004612d1d565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156106f357600080fd5b506103927f000000000000000000000000000000000000000000000000000000000000000081565b34801561072757600080fd5b506103427fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b81565b34801561075b57600080fd5b50610365611310565b6103ca610772366004612d04565b61131f565b34801561078357600080fd5b50610342600081565b34801561079857600080fd5b506103ca6107a7366004612c95565b6114e9565b3480156107b857600080fd5b50610342606481565b3480156107cd57600080fd5b506103176107dc366004612c47565b6115ae565b3480156107ed57600080fd5b506103ca6107fc366004612bcb565b6115ff565b34801561080d57600080fd5b5061036561081c366004612d04565b61168e565b34801561082d57600080fd5b506103ca61083c366004612d1d565b61176a565b34801561084d57600080fd5b5061031761085c366004612b5c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103ca610898366004612dc3565b611790565b3480156108a957600080fd5b506103ca6108b8366004612d7a565b611a0f565b60006108c882611a4d565b92915050565b6060600180546108dd90612ff5565b80601f016020809104026020016040519081016040528092919081815260200182805461090990612ff5565b80156109565780601f1061092b57610100808354040283529160200191610956565b820191906000526020600020905b81548152906001019060200180831161093957829003601f168201915b5050505050905090565b600061096d826000541190565b6109e45760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a0b826111df565b9050806001600160a01b0316836001600160a01b03161415610a955760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016109db565b336001600160a01b0382161480610ab15750610ab1813361085c565b610b235760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109db565b610b2e838383611a8b565b505050565b600c8054610b4090612ff5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6c90612ff5565b8015610bb95780601f10610b8e57610100808354040283529160200191610bb9565b820191906000526020600020905b815481529060010190602001808311610b9c57829003601f168201915b505050505081565b610b2e838383611aff565b6000828152600b6020526040902060010154610be88133611e30565b610b2e8383611eb0565b6000610bfd836111f1565b8210610c715760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016109db565b600080549080805b83811015610d0a576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610ccc57805192505b876001600160a01b0316836001600160a01b03161415610d015786841415610cfa575093506108c892505050565b6001909301925b50600101610c79565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e64657800000000000000000000000000000000000060648201526084016109db565b6001600160a01b0381163314610df75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109db565b610e018282611f52565b5050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610e308133611e30565b816115b381610e3e60005490565b610e489190612f50565b1115610e965760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016109db565b6002600a541415610ee95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a55600f54606490610eff908590612f50565b1115610f735760405162461bcd60e51b815260206004820152602660248201527f4e756d62657220776f756c6420657863656564206d617820726573657276652060448201527f737570706c79000000000000000000000000000000000000000000000000000060648201526084016109db565b82600f6000828254610f859190612f50565b90915550610f9590503384611fd5565b50506001600a5550565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610fca8133611e30565b6008805460ff19168315151790555050565b6000610fe88133611e30565b6002600a54141561103b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a556040516000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169047908381818185875af1925050503d80600081146110ab576040519150601f19603f3d011682016040523d82523d6000602084013e6110b0565b606091505b50509050806111015760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016109db565b50506001600a55565b610b2e838383604051806020016040528060008152506115ff565b60008054821061119d5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e6473000000000000000000000000000000000000000000000000000000000060648201526084016109db565b5090565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6111cc8133611e30565b8151610b2e90600d9060208501906129a7565b60006111ea82611fef565b5192915050565b60006001600160a01b03821661126f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084016109db565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6112c88133611e30565b50600e805460ff1916911515919091179055565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6113078133611e30565b610e01826120d9565b6060600280546108dd90612ff5565b600e5460ff166113715760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016109db565b806115b38161137f60005490565b6113899190612f50565b11156113d75760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016109db565b6002600a54141561142a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a9081558211156114805760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e207075726368617365000000000060448201526064016109db565b3461149266b1a2bc2ec5000084612f7c565b146114df5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016109db565b6111013383611fd5565b6001600160a01b0382163314156115425760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109db565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506115f78360075483612114565b949350505050565b61160a848484611aff565b611616848484846121c3565b6116885760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016109db565b50505050565b606061169b826000541190565b61170d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109db565b6000611717612326565b90508051600014156117385760405180602001604052806000815250611763565b8061174284612335565b604051602001611753929190612e20565b6040516020818303038152906040525b9392505050565b6000828152600b60205260409020600101546117868133611e30565b610b2e8383611f52565b60085460ff166117e25760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f7420616374697665000000000000000060448201526064016109db565b33816117ee82826115ae565b61183a5760405162461bcd60e51b815260206004820152601160248201527f4e6f74206f6e20616c6c6f77206c69737400000000000000000000000000000060448201526064016109db565b336000818152600960205260409020548590600a908161185a8483612f50565b11156118ce5760405162461bcd60e51b815260206004820152602f60248201527f507572636861736520776f756c6420657863656564206e756d626572206f662060448201527f746f6b656e7320616c6c6f74746564000000000000000000000000000000000060648201526084016109db565b876115b3816118dc60005490565b6118e69190612f50565b11156119345760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016109db565b6002600a5414156119875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a553461199e66b1a2bc2ec500008b612f7c565b146119eb5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016109db565b6119f5338a612433565b6119ff338a611fd5565b50506001600a5550505050505050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611a3a8133611e30565b8151610b2e90600c9060208501906129a7565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806108c857506108c8826124a2565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611b0a82611fef565b80519091506000906001600160a01b0316336001600160a01b03161480611b41575033611b3684610960565b6001600160a01b0316145b80611b5357508151611b53903361085c565b905080611bc85760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016109db565b846001600160a01b031682600001516001600160a01b031614611c535760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e6572000000000000000000000000000000000000000000000000000060648201526084016109db565b6001600160a01b038416611ccf5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109db565b611cdf6000848460000151611a8b565b6001600160a01b03858116600090815260046020908152604080832080546fffffffffffffffffffffffffffffffff198082166fffffffffffffffffffffffffffffffff928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b4267ffffffffffffffff1602179055908601808352912054909116611de657611d99816000541190565b15611de6578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16610e0157611e6e816001600160a01b03166014612571565b611e79836020612571565b604051602001611e8a929190612e4f565b60408051601f198184030181529082905262461bcd60e51b82526109db91600401612f0c565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16610e01576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f0e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1615610e01576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610e01828260405180602001604052806000815250612736565b604080518082019091526000808252602082015261200e826000541190565b6120805760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e0000000000000000000000000000000000000000000060648201526084016109db565b815b6000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156120cf579392505050565b5060001901612082565b60078190556040518181527f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c9060200160405180910390a150565b600081815b85518110156121b85760008682815181106121365761213661308b565b602002602001015190508083116121785760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506121a5565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806121b081613030565b915050612119565b509092149392505050565b60006001600160a01b0384163b1561231b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612207903390899088908890600401612ed0565b602060405180830381600087803b15801561222157600080fd5b505af1925050508015612251575060408051601f3d908101601f1916820190925261224e91810190612d5d565b60015b612301573d80801561227f576040519150601f19603f3d011682016040523d82523d6000602084013e612284565b606091505b5080516122f95760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016109db565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115f7565b506001949350505050565b6060600d80546108dd90612ff5565b6060816123595750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612383578061236d81613030565b915061237c9050600a83612f68565b915061235d565b60008167ffffffffffffffff81111561239e5761239e6130a1565b6040519080825280601f01601f1916602001820160405280156123c8576020820181803683370190505b5090505b84156115f7576123dd600183612f9b565b91506123ea600a8661304b565b6123f5906030612f50565b60f81b81838151811061240a5761240a61308b565b60200101906001600160f81b031916908160001a90535061242c600a86612f68565b94506123cc565b6001600160a01b0382166000908152600960205260408120805483929061245b908490612f50565b90915550506040518181526001600160a01b038316907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a25050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061250557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061253957506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b806108c857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108c8565b60606000612580836002612f7c565b61258b906002612f50565b67ffffffffffffffff8111156125a3576125a36130a1565b6040519080825280601f01601f1916602001820160405280156125cd576020820181803683370190505b509050600360fc1b816000815181106125e8576125e861308b565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106126335761263361308b565b60200101906001600160f81b031916908160001a9053506000612657846002612f7c565b612662906001612f50565b90505b60018111156126e7577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106126a3576126a361308b565b1a60f81b8282815181106126b9576126b961308b565b60200101906001600160f81b031916908160001a90535060049490941c936126e081612fde565b9050612665565b5083156117635760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109db565b610b2e83838360016000546001600160a01b0385166127bd5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016109db565b836128305760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d7573742062652067726561746560448201527f72207468616e203000000000000000000000000000000000000000000000000060648201526084016109db565b6001600160a01b038516600081815260046020908152604080832080547001000000000000000000000000000000006fffffffffffffffffffffffffffffffff1982166fffffffffffffffffffffffffffffffff9283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b4267ffffffffffffffff16021790915581905b8581101561299e5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483156129925761292060008884886121c3565b6129925760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016109db565b600191820191016128cd565b50600055611e29565b8280546129b390612ff5565b90600052602060002090601f0160209004810192826129d55760008555612a1b565b82601f106129ee57805160ff1916838001178555612a1b565b82800160010185558215612a1b579182015b82811115612a1b578251825591602001919060010190612a00565b5061119d9291505b8082111561119d5760008155600101612a23565b600067ffffffffffffffff831115612a5157612a516130a1565b612a64601f8401601f1916602001612f1f565b9050828152838383011115612a7857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612aa657600080fd5b919050565b600082601f830112612abc57600080fd5b8135602067ffffffffffffffff821115612ad857612ad86130a1565b8160051b612ae7828201612f1f565b838152828101908684018388018501891015612b0257600080fd5b600093505b85841015612b25578035835260019390930192918401918401612b07565b50979650505050505050565b80358015158114612aa657600080fd5b600060208284031215612b5357600080fd5b61176382612a8f565b60008060408385031215612b6f57600080fd5b612b7883612a8f565b9150612b8660208401612a8f565b90509250929050565b600080600060608486031215612ba457600080fd5b612bad84612a8f565b9250612bbb60208501612a8f565b9150604084013590509250925092565b60008060008060808587031215612be157600080fd5b612bea85612a8f565b9350612bf860208601612a8f565b925060408501359150606085013567ffffffffffffffff811115612c1b57600080fd5b8501601f81018713612c2c57600080fd5b612c3b87823560208401612a37565b91505092959194509250565b60008060408385031215612c5a57600080fd5b612c6383612a8f565b9150602083013567ffffffffffffffff811115612c7f57600080fd5b612c8b85828601612aab565b9150509250929050565b60008060408385031215612ca857600080fd5b612cb183612a8f565b9150612b8660208401612b31565b60008060408385031215612cd257600080fd5b612cdb83612a8f565b946020939093013593505050565b600060208284031215612cfb57600080fd5b61176382612b31565b600060208284031215612d1657600080fd5b5035919050565b60008060408385031215612d3057600080fd5b82359150612b8660208401612a8f565b600060208284031215612d5257600080fd5b8135611763816130b7565b600060208284031215612d6f57600080fd5b8151611763816130b7565b600060208284031215612d8c57600080fd5b813567ffffffffffffffff811115612da357600080fd5b8201601f81018413612db457600080fd5b6115f784823560208401612a37565b60008060408385031215612dd657600080fd5b82359150602083013567ffffffffffffffff811115612c7f57600080fd5b60008151808452612e0c816020860160208601612fb2565b601f01601f19169290920160200192915050565b60008351612e32818460208801612fb2565b835190830190612e46818360208801612fb2565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612e87816017850160208801612fb2565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612ec4816028840160208801612fb2565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f026080830184612df4565b9695505050505050565b6020815260006117636020830184612df4565b604051601f8201601f1916810167ffffffffffffffff81118282101715612f4857612f486130a1565b604052919050565b60008219821115612f6357612f6361305f565b500190565b600082612f7757612f77613075565b500490565b6000816000190483118215151615612f9657612f9661305f565b500290565b600082821015612fad57612fad61305f565b500390565b60005b83811015612fcd578181015183820152602001612fb5565b838111156116885750506000910152565b600081612fed57612fed61305f565b506000190190565b600181811c9082168061300957607f821691505b6020821081141561302a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130445761304461305f565b5060010190565b60008261305a5761305a613075565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146130cd57600080fd5b5056fea264697066735822122021b6033addeb7864d6e9e8b50479ce97e07f90b33ee188cb8530502e467a336764736f6c63430008070033000000000000000000000000dac2cb11c920925e16f39c344564713e01ed195e
Deployed Bytecode
0x6080604052600436106102f25760003560e01c80636352211e1161018f57806395d89b41116100e1578063b88d4fde1161008a578063e985e9c511610064578063e985e9c514610841578063fa05a6571461088a578063ffe630b51461089d57600080fd5b8063b88d4fde146107e1578063c87b56dd14610801578063d547741f1461082157600080fd5b8063a22cb465116100bb578063a22cb4651461078c578063a4a5e763146107ac578063b32c5680146107c157600080fd5b806395d89b411461074f578063a0712d6814610764578063a217fddf1461077757600080fd5b8063833b94991161014357806391d148541161011d57806391d14854146106a1578063943d40e7146106e757806394b059ab1461071b57600080fd5b8063833b949914610646578063841718a61461066157806384584d071461068157600080fd5b806368428a1b1161017457806368428a1b1461060c57806370a082311461062657806372f85d51146105f757600080fd5b80636352211e146105d757806365f13097146105f757600080fd5b80632f745c59116102485780633ccfd60b116101fc5780634f6ccce7116101d65780634f6ccce71461056157806355f804b3146105815780635ea1ef52146105a157600080fd5b80633ccfd60b1461051257806342842e0e14610527578063457dbf211461054757600080fd5b806336568abe1161022d57806336568abe146104b2578063375a069a146104d25780633a73c58d146104f257600080fd5b80632f745c591461047c57806332cb6b0c1461049c57600080fd5b80630f7309e8116102aa578063248a9ca311610284578063248a9ca3146104165780632eb4a7ab146104465780632f2ff15d1461045c57600080fd5b80630f7309e8146103cc57806318160ddd146103e157806323b872dd146103f657600080fd5b806306fdde03116102db57806306fdde0314610350578063081812fc14610372578063095ea7b3146103aa57600080fd5b806301ffc9a7146102f757806303d41eb61461032c575b600080fd5b34801561030357600080fd5b50610317610312366004612d40565b6108bd565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b50610342600f5481565b604051908152602001610323565b34801561035c57600080fd5b506103656108ce565b6040516103239190612f0c565b34801561037e57600080fd5b5061039261038d366004612d04565b610960565b6040516001600160a01b039091168152602001610323565b3480156103b657600080fd5b506103ca6103c5366004612cbf565b610a00565b005b3480156103d857600080fd5b50610365610b33565b3480156103ed57600080fd5b50600054610342565b34801561040257600080fd5b506103ca610411366004612b8f565b610bc1565b34801561042257600080fd5b50610342610431366004612d04565b6000908152600b602052604090206001015490565b34801561045257600080fd5b5061034260075481565b34801561046857600080fd5b506103ca610477366004612d1d565b610bcc565b34801561048857600080fd5b50610342610497366004612cbf565b610bf2565b3480156104a857600080fd5b506103426115b381565b3480156104be57600080fd5b506103ca6104cd366004612d1d565b610d79565b3480156104de57600080fd5b506103ca6104ed366004612d04565b610e05565b3480156104fe57600080fd5b506103ca61050d366004612ce9565b610f9f565b34801561051e57600080fd5b506103ca610fdc565b34801561053357600080fd5b506103ca610542366004612b8f565b61110a565b34801561055357600080fd5b506008546103179060ff1681565b34801561056d57600080fd5b5061034261057c366004612d04565b611125565b34801561058d57600080fd5b506103ca61059c366004612d7a565b6111a1565b3480156105ad57600080fd5b506103426105bc366004612b41565b6001600160a01b031660009081526009602052604090205490565b3480156105e357600080fd5b506103926105f2366004612d04565b6111df565b34801561060357600080fd5b50610342600a81565b34801561061857600080fd5b50600e546103179060ff1681565b34801561063257600080fd5b50610342610641366004612b41565b6111f1565b34801561065257600080fd5b5061034266b1a2bc2ec5000081565b34801561066d57600080fd5b506103ca61067c366004612ce9565b61129d565b34801561068d57600080fd5b506103ca61069c366004612d04565b6112dc565b3480156106ad57600080fd5b506103176106bc366004612d1d565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156106f357600080fd5b506103927f000000000000000000000000dac2cb11c920925e16f39c344564713e01ed195e81565b34801561072757600080fd5b506103427fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b81565b34801561075b57600080fd5b50610365611310565b6103ca610772366004612d04565b61131f565b34801561078357600080fd5b50610342600081565b34801561079857600080fd5b506103ca6107a7366004612c95565b6114e9565b3480156107b857600080fd5b50610342606481565b3480156107cd57600080fd5b506103176107dc366004612c47565b6115ae565b3480156107ed57600080fd5b506103ca6107fc366004612bcb565b6115ff565b34801561080d57600080fd5b5061036561081c366004612d04565b61168e565b34801561082d57600080fd5b506103ca61083c366004612d1d565b61176a565b34801561084d57600080fd5b5061031761085c366004612b5c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103ca610898366004612dc3565b611790565b3480156108a957600080fd5b506103ca6108b8366004612d7a565b611a0f565b60006108c882611a4d565b92915050565b6060600180546108dd90612ff5565b80601f016020809104026020016040519081016040528092919081815260200182805461090990612ff5565b80156109565780601f1061092b57610100808354040283529160200191610956565b820191906000526020600020905b81548152906001019060200180831161093957829003601f168201915b5050505050905090565b600061096d826000541190565b6109e45760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a0b826111df565b9050806001600160a01b0316836001600160a01b03161415610a955760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016109db565b336001600160a01b0382161480610ab15750610ab1813361085c565b610b235760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109db565b610b2e838383611a8b565b505050565b600c8054610b4090612ff5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6c90612ff5565b8015610bb95780601f10610b8e57610100808354040283529160200191610bb9565b820191906000526020600020905b815481529060010190602001808311610b9c57829003601f168201915b505050505081565b610b2e838383611aff565b6000828152600b6020526040902060010154610be88133611e30565b610b2e8383611eb0565b6000610bfd836111f1565b8210610c715760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016109db565b600080549080805b83811015610d0a576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610ccc57805192505b876001600160a01b0316836001600160a01b03161415610d015786841415610cfa575093506108c892505050565b6001909301925b50600101610c79565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e64657800000000000000000000000000000000000060648201526084016109db565b6001600160a01b0381163314610df75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109db565b610e018282611f52565b5050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610e308133611e30565b816115b381610e3e60005490565b610e489190612f50565b1115610e965760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016109db565b6002600a541415610ee95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a55600f54606490610eff908590612f50565b1115610f735760405162461bcd60e51b815260206004820152602660248201527f4e756d62657220776f756c6420657863656564206d617820726573657276652060448201527f737570706c79000000000000000000000000000000000000000000000000000060648201526084016109db565b82600f6000828254610f859190612f50565b90915550610f9590503384611fd5565b50506001600a5550565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610fca8133611e30565b6008805460ff19168315151790555050565b6000610fe88133611e30565b6002600a54141561103b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a556040516000906001600160a01b037f000000000000000000000000dac2cb11c920925e16f39c344564713e01ed195e169047908381818185875af1925050503d80600081146110ab576040519150601f19603f3d011682016040523d82523d6000602084013e6110b0565b606091505b50509050806111015760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016109db565b50506001600a55565b610b2e838383604051806020016040528060008152506115ff565b60008054821061119d5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e6473000000000000000000000000000000000000000000000000000000000060648201526084016109db565b5090565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6111cc8133611e30565b8151610b2e90600d9060208501906129a7565b60006111ea82611fef565b5192915050565b60006001600160a01b03821661126f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084016109db565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6112c88133611e30565b50600e805460ff1916911515919091179055565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6113078133611e30565b610e01826120d9565b6060600280546108dd90612ff5565b600e5460ff166113715760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016109db565b806115b38161137f60005490565b6113899190612f50565b11156113d75760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016109db565b6002600a54141561142a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a9081558211156114805760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e207075726368617365000000000060448201526064016109db565b3461149266b1a2bc2ec5000084612f7c565b146114df5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016109db565b6111013383611fd5565b6001600160a01b0382163314156115425760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109db565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506115f78360075483612114565b949350505050565b61160a848484611aff565b611616848484846121c3565b6116885760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016109db565b50505050565b606061169b826000541190565b61170d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109db565b6000611717612326565b90508051600014156117385760405180602001604052806000815250611763565b8061174284612335565b604051602001611753929190612e20565b6040516020818303038152906040525b9392505050565b6000828152600b60205260409020600101546117868133611e30565b610b2e8383611f52565b60085460ff166117e25760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f7420616374697665000000000000000060448201526064016109db565b33816117ee82826115ae565b61183a5760405162461bcd60e51b815260206004820152601160248201527f4e6f74206f6e20616c6c6f77206c69737400000000000000000000000000000060448201526064016109db565b336000818152600960205260409020548590600a908161185a8483612f50565b11156118ce5760405162461bcd60e51b815260206004820152602f60248201527f507572636861736520776f756c6420657863656564206e756d626572206f662060448201527f746f6b656e7320616c6c6f74746564000000000000000000000000000000000060648201526084016109db565b876115b3816118dc60005490565b6118e69190612f50565b11156119345760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016109db565b6002600a5414156119875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109db565b6002600a553461199e66b1a2bc2ec500008b612f7c565b146119eb5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016109db565b6119f5338a612433565b6119ff338a611fd5565b50506001600a5550505050505050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611a3a8133611e30565b8151610b2e90600c9060208501906129a7565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806108c857506108c8826124a2565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611b0a82611fef565b80519091506000906001600160a01b0316336001600160a01b03161480611b41575033611b3684610960565b6001600160a01b0316145b80611b5357508151611b53903361085c565b905080611bc85760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016109db565b846001600160a01b031682600001516001600160a01b031614611c535760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e6572000000000000000000000000000000000000000000000000000060648201526084016109db565b6001600160a01b038416611ccf5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109db565b611cdf6000848460000151611a8b565b6001600160a01b03858116600090815260046020908152604080832080546fffffffffffffffffffffffffffffffff198082166fffffffffffffffffffffffffffffffff928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b4267ffffffffffffffff1602179055908601808352912054909116611de657611d99816000541190565b15611de6578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16610e0157611e6e816001600160a01b03166014612571565b611e79836020612571565b604051602001611e8a929190612e4f565b60408051601f198184030181529082905262461bcd60e51b82526109db91600401612f0c565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16610e01576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f0e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1615610e01576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610e01828260405180602001604052806000815250612736565b604080518082019091526000808252602082015261200e826000541190565b6120805760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e0000000000000000000000000000000000000000000060648201526084016109db565b815b6000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156120cf579392505050565b5060001901612082565b60078190556040518181527f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c9060200160405180910390a150565b600081815b85518110156121b85760008682815181106121365761213661308b565b602002602001015190508083116121785760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506121a5565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806121b081613030565b915050612119565b509092149392505050565b60006001600160a01b0384163b1561231b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612207903390899088908890600401612ed0565b602060405180830381600087803b15801561222157600080fd5b505af1925050508015612251575060408051601f3d908101601f1916820190925261224e91810190612d5d565b60015b612301573d80801561227f576040519150601f19603f3d011682016040523d82523d6000602084013e612284565b606091505b5080516122f95760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016109db565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115f7565b506001949350505050565b6060600d80546108dd90612ff5565b6060816123595750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612383578061236d81613030565b915061237c9050600a83612f68565b915061235d565b60008167ffffffffffffffff81111561239e5761239e6130a1565b6040519080825280601f01601f1916602001820160405280156123c8576020820181803683370190505b5090505b84156115f7576123dd600183612f9b565b91506123ea600a8661304b565b6123f5906030612f50565b60f81b81838151811061240a5761240a61308b565b60200101906001600160f81b031916908160001a90535061242c600a86612f68565b94506123cc565b6001600160a01b0382166000908152600960205260408120805483929061245b908490612f50565b90915550506040518181526001600160a01b038316907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a25050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061250557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061253957506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b806108c857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108c8565b60606000612580836002612f7c565b61258b906002612f50565b67ffffffffffffffff8111156125a3576125a36130a1565b6040519080825280601f01601f1916602001820160405280156125cd576020820181803683370190505b509050600360fc1b816000815181106125e8576125e861308b565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106126335761263361308b565b60200101906001600160f81b031916908160001a9053506000612657846002612f7c565b612662906001612f50565b90505b60018111156126e7577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106126a3576126a361308b565b1a60f81b8282815181106126b9576126b961308b565b60200101906001600160f81b031916908160001a90535060049490941c936126e081612fde565b9050612665565b5083156117635760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109db565b610b2e83838360016000546001600160a01b0385166127bd5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016109db565b836128305760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d7573742062652067726561746560448201527f72207468616e203000000000000000000000000000000000000000000000000060648201526084016109db565b6001600160a01b038516600081815260046020908152604080832080547001000000000000000000000000000000006fffffffffffffffffffffffffffffffff1982166fffffffffffffffffffffffffffffffff9283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b4267ffffffffffffffff16021790915581905b8581101561299e5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483156129925761292060008884886121c3565b6129925760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016109db565b600191820191016128cd565b50600055611e29565b8280546129b390612ff5565b90600052602060002090601f0160209004810192826129d55760008555612a1b565b82601f106129ee57805160ff1916838001178555612a1b565b82800160010185558215612a1b579182015b82811115612a1b578251825591602001919060010190612a00565b5061119d9291505b8082111561119d5760008155600101612a23565b600067ffffffffffffffff831115612a5157612a516130a1565b612a64601f8401601f1916602001612f1f565b9050828152838383011115612a7857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612aa657600080fd5b919050565b600082601f830112612abc57600080fd5b8135602067ffffffffffffffff821115612ad857612ad86130a1565b8160051b612ae7828201612f1f565b838152828101908684018388018501891015612b0257600080fd5b600093505b85841015612b25578035835260019390930192918401918401612b07565b50979650505050505050565b80358015158114612aa657600080fd5b600060208284031215612b5357600080fd5b61176382612a8f565b60008060408385031215612b6f57600080fd5b612b7883612a8f565b9150612b8660208401612a8f565b90509250929050565b600080600060608486031215612ba457600080fd5b612bad84612a8f565b9250612bbb60208501612a8f565b9150604084013590509250925092565b60008060008060808587031215612be157600080fd5b612bea85612a8f565b9350612bf860208601612a8f565b925060408501359150606085013567ffffffffffffffff811115612c1b57600080fd5b8501601f81018713612c2c57600080fd5b612c3b87823560208401612a37565b91505092959194509250565b60008060408385031215612c5a57600080fd5b612c6383612a8f565b9150602083013567ffffffffffffffff811115612c7f57600080fd5b612c8b85828601612aab565b9150509250929050565b60008060408385031215612ca857600080fd5b612cb183612a8f565b9150612b8660208401612b31565b60008060408385031215612cd257600080fd5b612cdb83612a8f565b946020939093013593505050565b600060208284031215612cfb57600080fd5b61176382612b31565b600060208284031215612d1657600080fd5b5035919050565b60008060408385031215612d3057600080fd5b82359150612b8660208401612a8f565b600060208284031215612d5257600080fd5b8135611763816130b7565b600060208284031215612d6f57600080fd5b8151611763816130b7565b600060208284031215612d8c57600080fd5b813567ffffffffffffffff811115612da357600080fd5b8201601f81018413612db457600080fd5b6115f784823560208401612a37565b60008060408385031215612dd657600080fd5b82359150602083013567ffffffffffffffff811115612c7f57600080fd5b60008151808452612e0c816020860160208601612fb2565b601f01601f19169290920160200192915050565b60008351612e32818460208801612fb2565b835190830190612e46818360208801612fb2565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612e87816017850160208801612fb2565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612ec4816028840160208801612fb2565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f026080830184612df4565b9695505050505050565b6020815260006117636020830184612df4565b604051601f8201601f1916810167ffffffffffffffff81118282101715612f4857612f486130a1565b604052919050565b60008219821115612f6357612f6361305f565b500190565b600082612f7757612f77613075565b500490565b6000816000190483118215151615612f9657612f9661305f565b500290565b600082821015612fad57612fad61305f565b500390565b60005b83811015612fcd578181015183820152602001612fb5565b838111156116885750506000910152565b600081612fed57612fed61305f565b506000190190565b600181811c9082168061300957607f821691505b6020821081141561302a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130445761304461305f565b5060010190565b60008261305a5761305a613075565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146130cd57600080fd5b5056fea264697066735822122021b6033addeb7864d6e9e8b50479ce97e07f90b33ee188cb8530502e467a336764736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dac2cb11c920925e16f39c344564713e01ed195e
-----Decoded View---------------
Arg [0] : shareholderAddress_ (address): 0xdac2cB11C920925e16F39C344564713E01Ed195e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000dac2cb11c920925e16f39c344564713e01ed195e
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.