ERC-721
Overview
Max Total Supply
1,970 RUG
Holders
236
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 RUGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
ERC721Drop
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-16 */ // SPDX-License-Identifier: MIT // File: contracts/ERC1967Upgrade.sol // --- ZoraERC721 Contract. --- pragma solidity ^0.8.7; abstract contract ERC1967Upgrade { // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { // require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal { _upgradeTo(newImplementation); // if (data.length > 0 || forceCall) { // functionDelegateCall(newImplementation, data, "Address: low-level delegate call failed"); // } } struct AddressSlot { address value; } function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } } // File: contracts/proxy.sol pragma solidity ^0.8.7; abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function * and {_fallback} should delegate. */ function _implementation() internal view virtual returns (address); /** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _fallback() internal virtual { _delegate(_implementation()); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */ fallback() external payable virtual { _fallback(); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */ receive() external payable virtual { _fallback(); } } // File: contracts/ERC1967Proxy.sol // --- ZoraERC721 Contract. --- pragma solidity ^0.8.7; contract ERC1967Proxy is Proxy, ERC1967Upgrade { /** * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`. * * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded * function call, and allows initializing the storage of the proxy like a Solidity constructor. */ constructor(address _logic, bytes memory _data) payable { _upgradeToAndCall(_logic, _data, false); } /** * @dev Returns the current implementation address. */ function _implementation() internal view virtual override returns (address impl) { return ERC1967Upgrade._getImplementation(); } } // File: contracts/StandaloneProxyUpgradeable.sol pragma solidity ^0.8.20; contract ERC721Drop is ERC1967Proxy { /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _PROXY_ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104; /** * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}. */ constructor(address _logic) payable ERC1967Proxy(_logic, bytes("")) { _setProxyAdmin(msg.sender); } function upgradeTo(address newImplementation) public { require(_getProxyAdmin() == msg.sender, "No Proxy Admin"); _upgradeTo(newImplementation); } function implementation() public view returns (address) { return _implementation(); } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setProxyAdmin(address newAdmin) private { // require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); getAddressSlot(_PROXY_ADMIN_SLOT).value = newAdmin; } /** * @dev Returns the current implementation address. */ function _getProxyAdmin() internal view returns (address) { return getAddressSlot(_PROXY_ADMIN_SLOT).value; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_logic","type":"address"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040516103ac3803806103ac8339810160408190526100229161010d565b8060405180602001604052805f81525061004382825f61005560201b60201c565b5061004f905033610063565b5061013a565b61005e836100a7565b505050565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61045b80546001600160a01b0319166001600160a01b039290921691909117905550565b6100b0816100e6565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610086565b5f6020828403121561011d575f80fd5b81516001600160a01b0381168114610133575f80fd5b9392505050565b610265806101475f395ff3fe60806040526004361061002c575f3560e01c80633659cfe6146100435780635c60da1b146100625761003b565b3661003b57610039610092565b005b610039610092565b34801561004e575f80fd5b5061003961005d366004610202565b6100a4565b34801561006d575f80fd5b50610076610104565b6040516001600160a01b03909116815260200160405180910390f35b6100a261009d610112565b61011b565b565b336100ad610139565b6001600160a01b0316146100f85760405162461bcd60e51b815260206004820152600e60248201526d273790283937bc3c9020b236b4b760911b604482015260640160405180910390fd5b6101018161016b565b50565b5f61010d610112565b905090565b5f61010d6101db565b365f80375f80365f845af43d5f803e808015610135573d5ff35b3d5ffd5b5f7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61045b546001600160a01b0316919050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0383161790556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61015c565b5f60208284031215610212575f80fd5b81356001600160a01b0381168114610228575f80fd5b939250505056fea2646970667358221220726122696f5f905112a1c476bc73061afcf0e0439f5007efd8194129bc3f38ce64736f6c634300081700330000000000000000000000004eec933329628a84eb8bb3e71b8f8cceeacbb9a9
Deployed Bytecode
0x60806040526004361061002c575f3560e01c80633659cfe6146100435780635c60da1b146100625761003b565b3661003b57610039610092565b005b610039610092565b34801561004e575f80fd5b5061003961005d366004610202565b6100a4565b34801561006d575f80fd5b50610076610104565b6040516001600160a01b03909116815260200160405180910390f35b6100a261009d610112565b61011b565b565b336100ad610139565b6001600160a01b0316146100f85760405162461bcd60e51b815260206004820152600e60248201526d273790283937bc3c9020b236b4b760911b604482015260640160405180910390fd5b6101018161016b565b50565b5f61010d610112565b905090565b5f61010d6101db565b365f80375f80365f845af43d5f803e808015610135573d5ff35b3d5ffd5b5f7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61045b546001600160a01b0316919050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0383161790556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61015c565b5f60208284031215610212575f80fd5b81356001600160a01b0381168114610228575f80fd5b939250505056fea2646970667358221220726122696f5f905112a1c476bc73061afcf0e0439f5007efd8194129bc3f38ce64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004eec933329628a84eb8bb3e71b8f8cceeacbb9a9
-----Decoded View---------------
Arg [0] : _logic (address): 0x4EEC933329628A84eb8bB3E71B8F8CCEEaCbB9a9
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004eec933329628a84eb8bb3e71b8f8cceeacbb9a9
Deployed Bytecode Sourcemap
5636:1536:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4671:11;:9;:11::i;:::-;5636:1536;;4440:11;:9;:11::i;6353:169::-;;;;;;;;;;-1:-1:-1;6353:169:0;;;;;:::i;:::-;;:::i;6532:99::-;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;469:32:1;;;451:51;;439:2;424:18;6532:99:0;;;;;;;4105:85;4154:28;4164:17;:15;:17::i;:::-;4154:9;:28::i;:::-;4105:85::o;6353:169::-;6445:10;6425:16;:14;:16::i;:::-;-1:-1:-1;;;;;6425:30:0;;6417:57;;;;-1:-1:-1;;;6417:57:0;;715:2:1;6417:57:0;;;697:21:1;754:2;734:18;;;727:30;-1:-1:-1;;;773:18:1;;;766:44;827:18;;6417:57:0;;;;;;;;6485:29;6496:17;6485:10;:29::i;:::-;6353:169;:::o;6532:99::-;6579:7;6606:17;:15;:17::i;:::-;6599:24;;6532:99;:::o;5400:142::-;5467:12;5499:35;:33;:35::i;2695:918::-;3038:14;3035:1;3032;3019:34;3256:1;3253;3237:14;3234:1;3218:14;3211:5;3198:60;3335:16;3332:1;3329;3314:38;3375:6;3444:68;;;;3563:16;3560:1;3553:27;3444:68;3480:16;3477:1;3470:27;7046:123;7095:7;5940:66;7122:33;:39;-1:-1:-1;;;;;7122:39:0;;7046:123;-1:-1:-1;7046:123:0:o;1524:155::-;651:66;1341:62;;-1:-1:-1;;;;;;1341:62:0;-1:-1:-1;;;;;1341:62:0;;;;;1644:27;;-1:-1:-1;;;;;1644:27:0;;;;;;;;1524:155;:::o;932:130::-;985:7;651:66;1012:36;2199:195;14:286:1;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:1;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:1:o
Swarm Source
ipfs://726122696f5f905112a1c476bc73061afcf0e0439f5007efd8194129bc3f38ce
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.