Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 157 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 14921423 | 922 days ago | IN | 0 ETH | 0.00257076 | ||||
Mint | 14891491 | 927 days ago | IN | 0.42 ETH | 0.0035986 | ||||
Mint | 14891489 | 927 days ago | IN | 0.42 ETH | 0.00266217 | ||||
Mint | 14891488 | 927 days ago | IN | 0.42 ETH | 0.00245428 | ||||
Mint | 14891488 | 927 days ago | IN | 0.42 ETH | 0.013874 | ||||
Mint | 14891487 | 927 days ago | IN | 0.42 ETH | 0.00607571 | ||||
Mint | 14891487 | 927 days ago | IN | 0.42 ETH | 0.013874 | ||||
Mint | 14891485 | 927 days ago | IN | 0.42 ETH | 0.0129705 | ||||
Mint | 14891481 | 927 days ago | IN | 0.42 ETH | 0.00545626 | ||||
Mint | 14891471 | 927 days ago | IN | 0.42 ETH | 0.00483434 | ||||
Mint | 14891469 | 927 days ago | IN | 0.42 ETH | 0.00483282 | ||||
Mint | 14891449 | 927 days ago | IN | 0 ETH | 0.0033217 | ||||
Mint | 14891439 | 927 days ago | IN | 0.42 ETH | 0.02132566 | ||||
Mint | 14891434 | 927 days ago | IN | 0.42 ETH | 0.00298155 | ||||
Mint | 14891429 | 927 days ago | IN | 0.42 ETH | 0.00443418 | ||||
Mint | 14891414 | 927 days ago | IN | 0.42 ETH | 0.00936719 | ||||
Mint | 14891397 | 927 days ago | IN | 0.42 ETH | 0.00589693 | ||||
Mint | 14891191 | 927 days ago | IN | 0.42 ETH | 0.00589386 | ||||
Mint | 14890805 | 928 days ago | IN | 0.42 ETH | 0.00563363 | ||||
Mint | 14890540 | 928 days ago | IN | 0.42 ETH | 0.00402303 | ||||
Mint | 14890303 | 928 days ago | IN | 0.42 ETH | 0.0040269 | ||||
Mint | 14890270 | 928 days ago | IN | 0.42 ETH | 0.00381951 | ||||
Mint | 14890205 | 928 days ago | IN | 0.42 ETH | 0.00406533 | ||||
Mint | 14890188 | 928 days ago | IN | 0.42 ETH | 0.00392858 | ||||
Mint | 14890177 | 928 days ago | IN | 0.42 ETH | 0.00294786 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14921423 | 922 days ago | 63.42 ETH |
Loading...
Loading
Contract Name:
CultSale
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {ERC721} from "solmate/tokens/ERC721.sol"; import "solmate/auth/Owned.sol"; import "openzeppelin/utils/Strings.sol"; import "openzeppelin/access/AccessControl.sol"; import "./Cult.sol"; contract CultSale is Owned, AccessControl { bool public paused = true; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); Cult cult; address public withdrawRecipient; uint256 public totalSupply; uint256 supplyLimit = 200; uint256 public mintPrice = 0.420 ether; constructor(Cult _cult, address _withdrawRecipient) Owned(msg.sender) { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(ADMIN_ROLE, msg.sender); cult = _cult; withdrawRecipient = _withdrawRecipient; } fallback() external payable {} receive() external payable {} function mint() external payable { require(!paused, "SALE PAUSED"); require(cult.totalSupply() + 1 <= supplyLimit, "SOLD OUT"); require(msg.value >= mintPrice, "NOT ENOUGH ETH"); cult.mint(msg.sender, 1); } function withdraw() external { (bool sent, ) = payable(withdrawRecipient).call{ value: address(this).balance }(""); require(sent, "FAILED TO SEND ETH"); } function setSaleState(bool _paused) external onlyRole(ADMIN_ROLE) { paused = _paused; } function setPrice(uint256 _price) external onlyRole(ADMIN_ROLE) { require(_price != mintPrice, "ALREADY CURRENT PRICE"); mintPrice = _price; } function setWithdrawRecipient(address _withdrawRecipient) external onlyRole(ADMIN_ROLE) { withdrawRecipient = _withdrawRecipient; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @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 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]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @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 virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { 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 virtual 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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 revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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 { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {ERC721} from "solmate/tokens/ERC721.sol"; import "solmate/auth/Owned.sol"; import "openzeppelin/utils/Strings.sol"; import "openzeppelin/access/AccessControl.sol"; // 8DDDDDDDDDDDDDDDDDD // 8DDDDDDDDDDDDDDDDDDDDDDDDDDDD. // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // NDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDN // .8DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDN // .DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD. // . DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // ,DDDZ :DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD. .DD? // DDDDDDDDDD, ONDDDDDDDDDDDDDDDDDDDDDDDDDDDDDZ DDDDDDD // DDDDDDDDDDDDDDDD8,. ?8DDDDDDDDDDDDDDO~ . .NDDDDDDDDDDD. // DDDDDDDDDDDDDDDDDDDDDDDDDD+,. :$NDDDDDDDDDDDDDDDDDD. // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // .DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD. // NDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // =DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDI // DDDDDDDDDDDDDDDDD+ . NDDDDDDDDDDDDDDDDDDDDDDDD$$$$$DDDDDDDDDDDDDDDDDDD. // DDDDDDDDDDDDDDN .NDDDDDDDDDDDDDDDDDDDD. DDDD????INDDDDDDDDDD // DDDDDDDDDDDDD. NDDDDDDDDDDDDDDDDDDD. DDD. DDDDDDDDDDD // IDDDDDDDDDDDD: . DDDDDDDDDDDDDDDDDDD DDD. .DDDDDDDDDDDO // DDDDDDDDDDDDD .DDDD DD.....,DD8.....~D7 N... ..=DDDDDDDDD // DDDDDDDDDDDD7 DDDD. ..~D7 DD. ,D, D +DDDDDDDDD. // .DDDDDDDDDDDD ~DDDDDDDDDDD ~DD DD DZ DDDDDDDDDD, // =DDDDDDDDDDDD. 8DDDDDDDDDDD DDD DD DDD 8DDDDDDDDDDDD? // 7DDDDDDDDDDDD DDDDDDDDDDDD DDD DD DDD. DDDDDDDDDDDDD$ // IDDDDDDDDDDDD DDDDDDDDDDDD DDZ DO DDD. DDDDDDDDDDDDD$ // ~DDDDDDDDDDD$ DDDD?ZDDDDDD DD, .D: .DDD DDDDDDDDDDDDD+ // DDDDDDDDDDD: DDD: D :DD DD NDDD DDDDDDDDDDDDD. // DDDDDDDDDDD$ ., . DD .,. N: ..D: ..DDDDDDDDDDD. // DDDDDDDDDDDD. ZDD DD DD. ODDDDDDDDDDD // IDDDDDDDDDDDD DDDDD NDI DDI DDDDDDDDDDDZ // DDDDDDDDDDDDDD. IDDDDDDDD IDDDN DDDN DDDDDDDDDDD // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD. // :DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD? // NDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD. // .DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD. // .NDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // DDDDDDDDDDDDDDDDDDDDDDD:. .,8DDDDDDDDDDDDDDDD // DDDDDDDDDDDDDDD,. .$DDDDDDDDDDDDDDDDDDDDDO. =DDDDDDDDDD // 8DDDDDDD? . ODDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD~ DDDDDD // .DD. NDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD7 :D: // :7DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD8 // 8DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // .DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD. // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD // ZDDDDDDDDDDDDDDDDDDDDDDDDDDD8 // $DDDDDDDDDDDDDDDDDO contract Cult is ERC721, Owned, AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); string baseURI; string fileExt; string ball; uint256 public totalSupply; constructor(address premintRecipient) ERC721("Cult", "CULT") Owned(msg.sender) { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(ADMIN_ROLE, msg.sender); for (uint256 i = 0; i < 50; i++) { _safeMint(premintRecipient, i); totalSupply++; } require(balanceOf(premintRecipient) == 50, "PREMINT FAILED"); require(totalSupply == 50, "PREMINT FAILED"); } // INTERNAL function _exists(uint256 id) internal view returns (bool) { return _ownerOf[id] != address(0); } // ADMIN function setBall(string calldata _ball) external onlyRole(ADMIN_ROLE) { ball = _ball; } function setBaseURI(string calldata _baseURI, string calldata _fileExt) public onlyRole(ADMIN_ROLE) { baseURI = _baseURI; fileExt = _fileExt; } // PUBLIC function tokenURI(uint256 id) public view override returns (string memory) { require(_exists(id), "ERC721Metadata: URI query for nonexistent token"); return bytes(baseURI).length > 0 ? string( abi.encodePacked(baseURI, Strings.toString(id), fileExt) ) : ""; } function supportsInterface(bytes4 interfaceId) public pure override(ERC721, AccessControl) returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f || interfaceId == type(IAccessControl).interfaceId; } // EXTERNAL function mint(address to, uint256 quantity) external onlyRole(MINTER_ROLE) { for (uint256 i = 0; i < quantity; i++) { _safeMint(to, totalSupply); totalSupply++; } } function fetch() external view returns (string memory) { return ball; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @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) external; /** * @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) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "solmate/=lib/solmate/src/", "src/=src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london" }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract Cult","name":"_cult","type":"address"},{"internalType":"address","name":"_withdrawRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawRecipient","type":"address"}],"name":"setWithdrawRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526002805460ff1916600117905560c86005556705d423c655aa000060065534801561002e57600080fd5b5060405162000fcf38038062000fcf83398101604081905261004f916101ad565b600080546001600160a01b031916339081178255604051909182917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a35061009b600033610100565b6100c57fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533610100565b60028054610100600160a81b0319166101006001600160a01b0394851602179055600380546001600160a01b031916919092161790556101e7565b61010a828261010e565b5050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1661010a5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6001600160a01b03811681146101aa57600080fd5b50565b600080604083850312156101c057600080fd5b82516101cb81610195565b60208401519092506101dc81610195565b809150509250929050565b610dd880620001f76000396000f3fe60806040526004361061010c5760003560e01c80636817c76c1161009a578063a217fddf11610061578063a217fddf146102e6578063c0bb38ff146102fb578063c4e370951461031b578063d547741f1461033b578063dcbe353f1461035b57005b80636817c76c1461023657806375b238fc1461024c5780638da5cb5b1461026e57806391b7f5ed146102a657806391d14854146102c657005b8063248a9ca3116100de578063248a9ca3146101965780632f2ff15d146101c757806336568abe146101e75780633ccfd60b146102075780635c975abb1461021c57005b806301ffc9a7146101155780631249c58b1461014a57806313af40351461015257806318160ddd1461017257005b3661011357005b005b34801561012157600080fd5b50610135610130366004610b3d565b61037b565b60405190151581526020015b60405180910390f35b6101136103b2565b34801561015e57600080fd5b5061011361016d366004610b83565b610563565b34801561017e57600080fd5b5061018860045481565b604051908152602001610141565b3480156101a257600080fd5b506101886101b1366004610b9e565b6000908152600160208190526040909120015490565b3480156101d357600080fd5b506101136101e2366004610bb7565b6105f7565b3480156101f357600080fd5b50610113610202366004610bb7565b610622565b34801561021357600080fd5b506101136106a0565b34801561022857600080fd5b506002546101359060ff1681565b34801561024257600080fd5b5061018860065481565b34801561025857600080fd5b50610188600080516020610d8383398151915281565b34801561027a57600080fd5b5060005461028e906001600160a01b031681565b6040516001600160a01b039091168152602001610141565b3480156102b257600080fd5b506101136102c1366004610b9e565b61073b565b3480156102d257600080fd5b506101356102e1366004610bb7565b6107a2565b3480156102f257600080fd5b50610188600081565b34801561030757600080fd5b50610113610316366004610b83565b6107cd565b34801561032757600080fd5b50610113610336366004610be3565b610808565b34801561034757600080fd5b50610113610356366004610bb7565b610834565b34801561036757600080fd5b5060035461028e906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b14806103ac57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60025460ff16156103f85760405162461bcd60e51b815260206004820152600b60248201526a14d053114814105554d15160aa1b60448201526064015b60405180910390fd5b600554600260019054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561044e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104729190610c05565b61047d906001610c34565b11156104b65760405162461bcd60e51b815260206004820152600860248201526714d3d3110813d55560c21b60448201526064016103ef565b6006543410156104f95760405162461bcd60e51b815260206004820152600e60248201526d09c9ea8408a9c9eaa8e90408aa8960931b60448201526064016103ef565b6002546040516340c10f1960e01b8152336004820152600160248201526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561054957600080fd5b505af115801561055d573d6000803e3d6000fd5b50505050565b6000546001600160a01b031633146105ac5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064016103ef565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b600082815260016020819052604090912001546106138161085a565b61061d8383610864565b505050565b6001600160a01b03811633146106925760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103ef565b61069c82826108cf565b5050565b6003546040516000916001600160a01b03169047908381818185875af1925050503d80600081146106ed576040519150601f19603f3d011682016040523d82523d6000602084013e6106f2565b606091505b50509050806107385760405162461bcd60e51b815260206004820152601260248201527108c8292988a8840a89e40a68a9c88408aa8960731b60448201526064016103ef565b50565b600080516020610d838339815191526107538161085a565b600654820361079c5760405162461bcd60e51b8152602060048201526015602482015274414c52454144592043555252454e5420505249434560581b60448201526064016103ef565b50600655565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020610d838339815191526107e58161085a565b50600380546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020610d838339815191526108208161085a565b506002805460ff1916911515919091179055565b600082815260016020819052604090912001546108508161085a565b61061d83836108cf565b6107388133610936565b61086e82826107a2565b61069c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6108d982826107a2565b1561069c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61094082826107a2565b61069c57610958816001600160a01b0316601461099a565b61096383602061099a565b604051602001610974929190610c78565b60408051601f198184030181529082905262461bcd60e51b82526103ef91600401610ced565b606060006109a9836002610d20565b6109b4906002610c34565b67ffffffffffffffff8111156109cc576109cc610d3f565b6040519080825280601f01601f1916602001820160405280156109f6576020820181803683370190505b509050600360fc1b81600081518110610a1157610a11610d55565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610a4057610a40610d55565b60200101906001600160f81b031916908160001a9053506000610a64846002610d20565b610a6f906001610c34565b90505b6001811115610ae7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610aa357610aa3610d55565b1a60f81b828281518110610ab957610ab9610d55565b60200101906001600160f81b031916908160001a90535060049490941c93610ae081610d6b565b9050610a72565b508315610b365760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103ef565b9392505050565b600060208284031215610b4f57600080fd5b81356001600160e01b031981168114610b3657600080fd5b80356001600160a01b0381168114610b7e57600080fd5b919050565b600060208284031215610b9557600080fd5b610b3682610b67565b600060208284031215610bb057600080fd5b5035919050565b60008060408385031215610bca57600080fd5b82359150610bda60208401610b67565b90509250929050565b600060208284031215610bf557600080fd5b81358015158114610b3657600080fd5b600060208284031215610c1757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610c4757610c47610c1e565b500190565b60005b83811015610c67578181015183820152602001610c4f565b8381111561055d5750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610cb0816017850160208801610c4c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610ce1816028840160208801610c4c565b01602801949350505050565b6020815260008251806020840152610d0c816040850160208701610c4c565b601f01601f19169190910160400192915050565b6000816000190483118215151615610d3a57610d3a610c1e565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081610d7a57610d7a610c1e565b50600019019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a26469706673582212204add743b7af692716726bc9046f89f617bedcbe5058d7ff8a62e9001c4a533e664736f6c634300080d0033000000000000000000000000cbbbbe7dcbd2133e2cb6f34581476455e36cc83f000000000000000000000000f2270f39a96af4040f697769f24969c83f182dbc
Deployed Bytecode
0x60806040526004361061010c5760003560e01c80636817c76c1161009a578063a217fddf11610061578063a217fddf146102e6578063c0bb38ff146102fb578063c4e370951461031b578063d547741f1461033b578063dcbe353f1461035b57005b80636817c76c1461023657806375b238fc1461024c5780638da5cb5b1461026e57806391b7f5ed146102a657806391d14854146102c657005b8063248a9ca3116100de578063248a9ca3146101965780632f2ff15d146101c757806336568abe146101e75780633ccfd60b146102075780635c975abb1461021c57005b806301ffc9a7146101155780631249c58b1461014a57806313af40351461015257806318160ddd1461017257005b3661011357005b005b34801561012157600080fd5b50610135610130366004610b3d565b61037b565b60405190151581526020015b60405180910390f35b6101136103b2565b34801561015e57600080fd5b5061011361016d366004610b83565b610563565b34801561017e57600080fd5b5061018860045481565b604051908152602001610141565b3480156101a257600080fd5b506101886101b1366004610b9e565b6000908152600160208190526040909120015490565b3480156101d357600080fd5b506101136101e2366004610bb7565b6105f7565b3480156101f357600080fd5b50610113610202366004610bb7565b610622565b34801561021357600080fd5b506101136106a0565b34801561022857600080fd5b506002546101359060ff1681565b34801561024257600080fd5b5061018860065481565b34801561025857600080fd5b50610188600080516020610d8383398151915281565b34801561027a57600080fd5b5060005461028e906001600160a01b031681565b6040516001600160a01b039091168152602001610141565b3480156102b257600080fd5b506101136102c1366004610b9e565b61073b565b3480156102d257600080fd5b506101356102e1366004610bb7565b6107a2565b3480156102f257600080fd5b50610188600081565b34801561030757600080fd5b50610113610316366004610b83565b6107cd565b34801561032757600080fd5b50610113610336366004610be3565b610808565b34801561034757600080fd5b50610113610356366004610bb7565b610834565b34801561036757600080fd5b5060035461028e906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b14806103ac57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60025460ff16156103f85760405162461bcd60e51b815260206004820152600b60248201526a14d053114814105554d15160aa1b60448201526064015b60405180910390fd5b600554600260019054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561044e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104729190610c05565b61047d906001610c34565b11156104b65760405162461bcd60e51b815260206004820152600860248201526714d3d3110813d55560c21b60448201526064016103ef565b6006543410156104f95760405162461bcd60e51b815260206004820152600e60248201526d09c9ea8408a9c9eaa8e90408aa8960931b60448201526064016103ef565b6002546040516340c10f1960e01b8152336004820152600160248201526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561054957600080fd5b505af115801561055d573d6000803e3d6000fd5b50505050565b6000546001600160a01b031633146105ac5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064016103ef565b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b600082815260016020819052604090912001546106138161085a565b61061d8383610864565b505050565b6001600160a01b03811633146106925760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103ef565b61069c82826108cf565b5050565b6003546040516000916001600160a01b03169047908381818185875af1925050503d80600081146106ed576040519150601f19603f3d011682016040523d82523d6000602084013e6106f2565b606091505b50509050806107385760405162461bcd60e51b815260206004820152601260248201527108c8292988a8840a89e40a68a9c88408aa8960731b60448201526064016103ef565b50565b600080516020610d838339815191526107538161085a565b600654820361079c5760405162461bcd60e51b8152602060048201526015602482015274414c52454144592043555252454e5420505249434560581b60448201526064016103ef565b50600655565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020610d838339815191526107e58161085a565b50600380546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020610d838339815191526108208161085a565b506002805460ff1916911515919091179055565b600082815260016020819052604090912001546108508161085a565b61061d83836108cf565b6107388133610936565b61086e82826107a2565b61069c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6108d982826107a2565b1561069c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61094082826107a2565b61069c57610958816001600160a01b0316601461099a565b61096383602061099a565b604051602001610974929190610c78565b60408051601f198184030181529082905262461bcd60e51b82526103ef91600401610ced565b606060006109a9836002610d20565b6109b4906002610c34565b67ffffffffffffffff8111156109cc576109cc610d3f565b6040519080825280601f01601f1916602001820160405280156109f6576020820181803683370190505b509050600360fc1b81600081518110610a1157610a11610d55565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610a4057610a40610d55565b60200101906001600160f81b031916908160001a9053506000610a64846002610d20565b610a6f906001610c34565b90505b6001811115610ae7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610aa357610aa3610d55565b1a60f81b828281518110610ab957610ab9610d55565b60200101906001600160f81b031916908160001a90535060049490941c93610ae081610d6b565b9050610a72565b508315610b365760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103ef565b9392505050565b600060208284031215610b4f57600080fd5b81356001600160e01b031981168114610b3657600080fd5b80356001600160a01b0381168114610b7e57600080fd5b919050565b600060208284031215610b9557600080fd5b610b3682610b67565b600060208284031215610bb057600080fd5b5035919050565b60008060408385031215610bca57600080fd5b82359150610bda60208401610b67565b90509250929050565b600060208284031215610bf557600080fd5b81358015158114610b3657600080fd5b600060208284031215610c1757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610c4757610c47610c1e565b500190565b60005b83811015610c67578181015183820152602001610c4f565b8381111561055d5750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610cb0816017850160208801610c4c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610ce1816028840160208801610c4c565b01602801949350505050565b6020815260008251806020840152610d0c816040850160208701610c4c565b601f01601f19169190910160400192915050565b6000816000190483118215151615610d3a57610d3a610c1e565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081610d7a57610d7a610c1e565b50600019019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a26469706673582212204add743b7af692716726bc9046f89f617bedcbe5058d7ff8a62e9001c4a533e664736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000cbbbbe7dcbd2133e2cb6f34581476455e36cc83f000000000000000000000000f2270f39a96af4040f697769f24969c83f182dbc
-----Decoded View---------------
Arg [0] : _cult (address): 0xCBBbbE7dCbd2133E2cB6f34581476455e36CC83f
Arg [1] : _withdrawRecipient (address): 0xf2270f39A96Af4040f697769f24969C83F182DBC
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000cbbbbe7dcbd2133e2cb6f34581476455e36cc83f
Arg [1] : 000000000000000000000000f2270f39a96af4040f697769f24969c83f182dbc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.