ERC-721
Overview
Max Total Supply
2 Omniking
Holders
1
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 OmnikingLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x4558f4cD...87e50acc2 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
OMNINFTProxy
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-21 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.12; library AddressSlot { function get(bytes32 slot) internal view returns (address addr) { assembly { addr := sload(slot) } } function set(bytes32 slot, address addr) internal { assembly { sstore(slot, addr) } } } contract ERC1967AdminStorage { /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current Admin. */ function _getAdmin() internal view returns (address) { return AddressSlot.get(_ADMIN_SLOT); } /** * @dev Stores a new address in the EIP1967 Admin slot. */ function _setAdmin(address newAdmin) internal { AddressSlot.set(_ADMIN_SLOT, newAdmin); } } // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @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); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Some method come from `OpenZeppelin Contracts` contract ERC1967Proxy is ERC1967AdminStorage { /** * @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 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @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); } /** * @dev Returns the current implementation address. */ function getImplementation() public view returns (address) { return AddressSlot.get(_IMPLEMENTATION_SLOT); } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) internal { require( Address.isContract(newImplementation), "ERC1967: new implementation is not a contract" ); AddressSlot.set(_IMPLEMENTATION_SLOT, newImplementation); } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external payable { require( msg.sender == _getAdmin(), "ERC1967Proxy: caller is not the admin" ); _upgradeTo(newImplementation); } /** * @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 { 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 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(getImplementation()); } /** * @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(); } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) private { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall(address newImplementation, bytes memory data) private { _upgradeTo(newImplementation); if (data.length > 0) { Address.functionDelegateCall(newImplementation, data); } } } contract OMNINFTProxy is ERC1967Proxy { constructor(address logic, bytes memory data) payable ERC1967Proxy(logic, data) { // solhint-disable-previous-line no-empty-blocks } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"logic","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"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":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260405162000a0638038062000a0683398101604081905262000026916200030d565b81816200003482826200003e565b505050506200043b565b62000049826200006e565b8051156200006a57620000688282620000b060201b6200018f1760201c565b505b5050565b6200007981620000df565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620000d88383604051806060016040528060278152602001620009df602791396200019a565b9392505050565b620000f5816200028060201b620001bb1760201c565b6200015d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b620001977f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b826200028f60201b620001d71760201c565b50565b60606001600160a01b0384163b620002045760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840162000154565b600080856001600160a01b031685604051620002219190620003e8565b600060405180830381855af49150503d80600081146200025e576040519150601f19603f3d011682016040523d82523d6000602084013e62000263565b606091505b5090925090506200027682828662000293565b9695505050505050565b6001600160a01b03163b151590565b9055565b60608315620002a4575081620000d8565b825115620002b55782518084602001fd5b8160405162461bcd60e51b815260040162000154919062000406565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000304578181015183820152602001620002ea565b50506000910152565b600080604083850312156200032157600080fd5b82516001600160a01b03811681146200033957600080fd5b60208401519092506001600160401b03808211156200035757600080fd5b818501915085601f8301126200036c57600080fd5b815181811115620003815762000381620002d1565b604051601f8201601f19908116603f01168101908382118183101715620003ac57620003ac620002d1565b81604052828152886020848701011115620003c657600080fd5b620003d9836020830160208801620002e7565b80955050505050509250929050565b60008251620003fc818460208701620002e7565b9190910192915050565b602081526000825180602084015262000427816040850160208701620002e7565b601f01601f19169190910160400192915050565b610594806200044b6000396000f3fe60806040526004361061002d5760003560e01c80633659cfe614610044578063aaf10f42146100575761003c565b3661003c5761003a610095565b005b61003a610095565b61003a610052366004610470565b6100a7565b34801561006357600080fd5b5061006c610160565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100a56100a0610160565b6101db565b565b6100af6101ff565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101545760405162461bcd60e51b815260206004820152602560248201527f4552433139363750726f78793a2063616c6c6572206973206e6f74207468652060448201527f61646d696e00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61015d81610229565b50565b600061018a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b905090565b60606101b4838360405180606001604052806027815260200161053860279139610276565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b9055565b3660008037600080366000845af43d6000803e8080156101fa573d6000f35b3d6000fd5b600061018a7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61023281610384565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606073ffffffffffffffffffffffffffffffffffffffff84163b6103025760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161014b565b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161032a91906104ca565b600060405180830381855af49150503d8060008114610365576040519150601f19603f3d011682016040523d82523d6000602084013e61036a565b606091505b509150915061037a828286610437565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff81163b61040e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161014b565b61015d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc829055565b606083156104465750816101b4565b8251156104565782518084602001fd5b8160405162461bcd60e51b815260040161014b91906104e6565b60006020828403121561048257600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146101b457600080fd5b60005b838110156104c15781810151838201526020016104a9565b50506000910152565b600082516104dc8184602087016104a6565b9190910192915050565b60208152600082518060208401526105058160408501602087016104a6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212208625d6787f9115ab4452ecde181c5cfe55139ed3d36c14e021f3fcbd5f98222f64736f6c63430008110033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000346c5c037ca84773f6443d332065e94c1f1d2dfc00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061002d5760003560e01c80633659cfe614610044578063aaf10f42146100575761003c565b3661003c5761003a610095565b005b61003a610095565b61003a610052366004610470565b6100a7565b34801561006357600080fd5b5061006c610160565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100a56100a0610160565b6101db565b565b6100af6101ff565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101545760405162461bcd60e51b815260206004820152602560248201527f4552433139363750726f78793a2063616c6c6572206973206e6f74207468652060448201527f61646d696e00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61015d81610229565b50565b600061018a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b905090565b60606101b4838360405180606001604052806027815260200161053860279139610276565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b9055565b3660008037600080366000845af43d6000803e8080156101fa573d6000f35b3d6000fd5b600061018a7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61023281610384565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606073ffffffffffffffffffffffffffffffffffffffff84163b6103025760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161014b565b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161032a91906104ca565b600060405180830381855af49150503d8060008114610365576040519150601f19603f3d011682016040523d82523d6000602084013e61036a565b606091505b509150915061037a828286610437565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff81163b61040e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161014b565b61015d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc829055565b606083156104465750816101b4565b8251156104565782518084602001fd5b8160405162461bcd60e51b815260040161014b91906104e6565b60006020828403121561048257600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146101b457600080fd5b60005b838110156104c15781810151838201526020016104a9565b50506000910152565b600082516104dc8184602087016104a6565b9190910192915050565b60208152600082518060208401526105058160408501602087016104a6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212208625d6787f9115ab4452ecde181c5cfe55139ed3d36c14e021f3fcbd5f98222f64736f6c63430008110033
Deployed Bytecode Sourcemap
9348:217:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8658:11;:9;:11::i;:::-;9348:217;;8427:11;:9;:11::i;6386:234::-;;;;;;:::i;:::-;;:::i;5772:122::-;;;;;;;;;;;;;:::i;:::-;;;504:42:1;492:55;;;474:74;;462:2;447:18;5772:122:0;;;;;;;8090:87;8139:30;8149:19;:17;:19::i;:::-;8139:9;:30::i;:::-;8090:87::o;6386:234::-;6496:11;:9;:11::i;:::-;6482:25;;:10;:25;;;6460:112;;;;-1:-1:-1;;;6460:112:0;;761:2:1;6460:112:0;;;743:21:1;800:2;780:18;;;773:30;839:34;819:18;;;812:62;910:7;890:18;;;883:35;935:19;;6460:112:0;;;;;;;;;6583:29;6594:17;6583:10;:29::i;:::-;6386:234;:::o;5772:122::-;5822:7;5849:37;5039:66;201:11;;94:136;5849:37;5842:44;;5772:122;:::o;2764:302::-;2865:12;2915:143;2954:6;2979:4;2915:143;;;;;;;;;;;;;;;;;:20;:143::i;:::-;2895:163;2764:302;-1:-1:-1;;;2764:302:0:o;2251:326::-;2546:19;;;:23;;;2251:326::o;238:121::-;323:18;;238:121::o;6828:1027::-;7163:14;7160:1;7157;7144:34;7484:1;7464;7431:14;7411:1;7378:14;7354:5;7323:177;7577:16;7574:1;7571;7556:38;7617:6;7686:68;;;;7805:16;7802:1;7795:27;7686:68;7722:16;7719:1;7712:27;790:107;834:7;861:28;657:66;201:11;;94:136;8790:154;8856:37;8875:17;8856:18;:37::i;:::-;8909:27;;;;;;;;;;;8790:154;:::o;3260:396::-;3405:12;2546:19;;;;3430:69;;;;-1:-1:-1;;;3430:69:0;;1167:2:1;3430:69:0;;;1149:21:1;1206:2;1186:18;;;1179:30;1245:34;1225:18;;;1218:62;1316:8;1296:18;;;1289:36;1342:19;;3430:69:0;965:402:1;3430:69:0;3513:12;3527:23;3554:6;:19;;3574:4;3554:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3512:67;;;;3597:51;3614:7;3623:10;3635:12;3597:16;:51::i;:::-;3590:58;3260:396;-1:-1:-1;;;;;;3260:396:0:o;5990:283::-;2546:19;;;;6066:132;;;;-1:-1:-1;;;6066:132:0;;2121:2:1;6066:132:0;;;2103:21:1;2160:2;2140:18;;;2133:30;2199:34;2179:18;;;2172:62;2270:15;2250:18;;;2243:43;2303:19;;6066:132:0;1919:409:1;6066:132:0;6209:56;5039:66;6247:17;323:18;;238:121;3884:762;4034:12;4063:7;4059:580;;;-1:-1:-1;4094:10:0;4087:17;;4059:580;4208:17;;:21;4204:424;;4456:10;4450:17;4517:15;4504:10;4500:2;4496:19;4489:44;4204:424;4599:12;4592:20;;-1:-1:-1;;;4592:20:0;;;;;;;;:::i;14:309:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;181:9;168:23;231:42;224:5;220:54;213:5;210:65;200:93;;289:1;286;279:12;1372:250;1457:1;1467:113;1481:6;1478:1;1475:13;1467:113;;;1557:11;;;1551:18;1538:11;;;1531:39;1503:2;1496:10;1467:113;;;-1:-1:-1;;1614:1:1;1596:16;;1589:27;1372:250::o;1627:287::-;1756:3;1794:6;1788:13;1810:66;1869:6;1864:3;1857:4;1849:6;1845:17;1810:66;:::i;:::-;1892:16;;;;;1627:287;-1:-1:-1;;1627:287:1:o;2333:455::-;2482:2;2471:9;2464:21;2445:4;2514:6;2508:13;2557:6;2552:2;2541:9;2537:18;2530:34;2573:79;2645:6;2640:2;2629:9;2625:18;2620:2;2612:6;2608:15;2573:79;:::i;:::-;2704:2;2692:15;2709:66;2688:88;2673:104;;;;2779:2;2669:113;;2333:455;-1:-1:-1;;2333:455:1:o
Swarm Source
ipfs://8625d6787f9115ab4452ecde181c5cfe55139ed3d36c14e021f3fcbd5f98222f
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.