Overview
TokenID
9
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AnimalRock
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "./ERC1967Proxy.sol"; contract AnimalRock 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; } }
// SPDX-License-Identifier: GPL-3.0 // --- ZoraERC721 Contract. --- pragma solidity ^0.8.7; import "./proxy.sol"; import "./ERC1967Upgrade.sol"; 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(); } }
// SPDX-License-Identifier: GPL-3.0 // --- 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 } } }
// SPDX-License-Identifier: GPL-3.0 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(); } }
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
60806040526040516103c53803806103c583398101604081905261002291610110565b80604051806020016040528060008152506100458282600061005760201b60201c565b50610051905033610065565b50610140565b610060836100a9565b505050565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61045b80546001600160a01b0319166001600160a01b039290921691909117905550565b6100b2816100e9565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610088565b60006020828403121561012257600080fd5b81516001600160a01b038116811461013957600080fd5b9392505050565b6102768061014f6000396000f3fe60806040526004361061002d5760003560e01c80633659cfe6146100445780635c60da1b146100645761003c565b3661003c5761003a610095565b005b61003a610095565b34801561005057600080fd5b5061003a61005f366004610210565b6100a7565b34801561007057600080fd5b50610079610107565b6040516001600160a01b03909116815260200160405180910390f35b6100a56100a0610116565b610120565b565b336100b0610144565b6001600160a01b0316146100fb5760405162461bcd60e51b815260206004820152600e60248201526d273790283937bc3c9020b236b4b760911b604482015260640160405180910390fd5b61010481610177565b50565b6000610111610116565b905090565b60006101116101e8565b3660008037600080366000845af43d6000803e80801561013f573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61045b546001600160a01b0316919050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0383161790556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610168565b60006020828403121561022257600080fd5b81356001600160a01b038116811461023957600080fd5b939250505056fea264697066735822122034c328a984a4dddb6630e65f35a5ff000a429fdc38941ea6c0a5005c410d2ee764736f6c6343000812003300000000000000000000000002e2c2314eee894d6caa1d86c877b117542fbc72
Deployed Bytecode
0x60806040526004361061002d5760003560e01c80633659cfe6146100445780635c60da1b146100645761003c565b3661003c5761003a610095565b005b61003a610095565b34801561005057600080fd5b5061003a61005f366004610210565b6100a7565b34801561007057600080fd5b50610079610107565b6040516001600160a01b03909116815260200160405180910390f35b6100a56100a0610116565b610120565b565b336100b0610144565b6001600160a01b0316146100fb5760405162461bcd60e51b815260206004820152600e60248201526d273790283937bc3c9020b236b4b760911b604482015260640160405180910390fd5b61010481610177565b50565b6000610111610116565b905090565b60006101116101e8565b3660008037600080366000845af43d6000803e80801561013f573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61045b546001600160a01b0316919050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0383161790556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610168565b60006020828403121561022257600080fd5b81356001600160a01b038116811461023957600080fd5b939250505056fea264697066735822122034c328a984a4dddb6630e65f35a5ff000a429fdc38941ea6c0a5005c410d2ee764736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000002e2c2314eee894d6caa1d86c877b117542fbc72
-----Decoded View---------------
Arg [0] : _logic (address): 0x02E2c2314eee894D6cAa1d86C877b117542FBC72
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000002e2c2314eee894d6caa1d86c877b117542fbc72
Deployed Bytecode Sourcemap
94:1497:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;2460:11:3;:9;:11::i;:::-;94:1497:0;;2237:11:3;:9;:11::i;796:166:0:-;;;;;;;;;;-1:-1:-1;796:166:0;;;;;:::i;:::-;;:::i;969:97::-;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;469:32:4;;;451:51;;439:2;424:18;969:97:0;;;;;;;1911:83:3;1959:28;1969:17;:15;:17::i;:::-;1959:9;:28::i;:::-;1911:83::o;796:166:0:-;887:10;867:16;:14;:16::i;:::-;-1:-1:-1;;;;;867:30:0;;859:57;;;;-1:-1:-1;;;859:57:0;;715:2:4;859:57:0;;;697:21:4;754:2;734:18;;;727:30;-1:-1:-1;;;773:18:4;;;766:44;827:18;;859:57:0;;;;;;;;926:29;937:17;926:10;:29::i;:::-;796:166;:::o;969:97::-;1016:7;1042:17;:15;:17::i;:::-;1035:24;;969:97;:::o;979:140:1:-;1046:12;1077:35;:33;:35::i;537:895:3:-;875:14;872:1;869;856:34;1089:1;1086;1070:14;1067:1;1051:14;1044:5;1031:60;1165:16;1162:1;1159;1144:38;1203:6;1270:66;;;;1385:16;1382:1;1375:27;1270:66;1305:16;1302:1;1295:27;1468:121:0;1517:7;392:66;1543:33;:39;-1:-1:-1;;;;;1543:39:0;;1468:121;-1:-1:-1;1468:121:0:o;1692:152:2:-;846:66;1517:62;;-1:-1:-1;;;;;;1517:62:2;-1:-1:-1;;;;;1517:62:2;;;;;1810:27;;-1:-1:-1;;;;;1810:27:2;;;;;;;;1692:152;:::o;1117:128::-;1170:7;846:66;1196:36;2347:190;14:286:4;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:4;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:4:o
Swarm Source
ipfs://34c328a984a4dddb6630e65f35a5ff000a429fdc38941ea6c0a5005c410d2ee7
Loading...
Loading
Loading...
Loading
[ 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.