This nametag was submitted by Kleros Curate.
ERC-20
Overview
Max Total Supply
2,009,015.455939629400750214 OMKG
Holders
1,865
Total Transfers
-
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Diamond
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 * * Implementation of a diamond. /******************************************************************************/ import { LibDiamond } from "./libraries/LibDiamond.sol"; import { IDiamondCut } from "./interfaces/IDiamondCut.sol"; contract Diamond { constructor(address _contractOwner, address _diamondCutFacet) payable { LibDiamond.setContractOwner(_contractOwner); // Add the diamondCut external function from the diamondCutFacet IDiamondCut.FacetCut[] memory cut = new IDiamondCut.FacetCut[](1); bytes4[] memory functionSelectors = new bytes4[](1); functionSelectors[0] = IDiamondCut.diamondCut.selector; cut[0] = IDiamondCut.FacetCut({ facetAddress: _diamondCutFacet, action: IDiamondCut.FacetCutAction.Add, functionSelectors: functionSelectors }); LibDiamond.diamondCut(cut, address(0), ""); } // Find facet for function that is called and execute the // function if a facet is found and return any value. fallback() external payable { LibDiamond.DiamondStorage storage ds; bytes32 position = LibDiamond.DIAMOND_STORAGE_POSITION; // get diamond storage assembly { ds.slot := position } // get facet from function selector address facet = address(bytes20(ds.facets[msg.sig])); require(facet != address(0), "Diamond: Function does not exist"); // Execute external function from facet using delegatecall and return any value. assembly { // copy function selector and any arguments calldatacopy(0, 0, calldatasize()) // execute function call using the facet let result := delegatecall(gas(), facet, 0, calldatasize(), 0, 0) // get any return value returndatacopy(0, 0, returndatasize()) // return any return value or error back to the caller switch result case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ interface IDiamondCut { enum FacetCutAction {Add, Replace, Remove} // Add=0, Replace=1, Remove=2 struct FacetCut { address facetAddress; FacetCutAction action; bytes4[] functionSelectors; } /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @param _diamondCut Contains the facet addresses and function selectors /// @param _init The address of the contract or facet to execute _calldata /// @param _calldata A function call, including function selector and arguments /// _calldata is executed with delegatecall on _init function diamondCut( FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata ) external; event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ import { IDiamondCut } from "../interfaces/IDiamondCut.sol"; library LibDiamond { bytes32 constant DIAMOND_STORAGE_POSITION = keccak256("diamond.standard.diamond.storage"); struct DiamondStorage { // maps function selectors to the facets that execute the functions. // and maps the selectors to their position in the selectorSlots array. // func selector => address facet, selector position mapping(bytes4 => bytes32) facets; // array of slots of function selectors. // each slot holds 8 function selectors. mapping(uint256 => bytes32) selectorSlots; // The number of function selectors in selectorSlots uint16 selectorCount; // Used to query if a contract implements an interface. // Used to implement ERC-165. mapping(bytes4 => bool) supportedInterfaces; // owner of the contract address contractOwner; } function diamondStorage() internal pure returns (DiamondStorage storage ds) { bytes32 position = DIAMOND_STORAGE_POSITION; assembly { ds.slot := position } } event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function setContractOwner(address _newOwner) internal { DiamondStorage storage ds = diamondStorage(); address previousOwner = ds.contractOwner; ds.contractOwner = _newOwner; emit OwnershipTransferred(previousOwner, _newOwner); } function contractOwner() internal view returns (address contractOwner_) { contractOwner_ = diamondStorage().contractOwner; } function enforceIsContractOwner() internal view { require(msg.sender == diamondStorage().contractOwner, "LibDiamond: Must be contract owner"); } event DiamondCut(IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata); bytes32 constant CLEAR_ADDRESS_MASK = bytes32(uint256(0xffffffffffffffffffffffff)); bytes32 constant CLEAR_SELECTOR_MASK = bytes32(uint256(0xffffffff << 224)); // Internal function version of diamondCut // This code is almost the same as the external diamondCut, // except it is using 'Facet[] memory _diamondCut' instead of // 'Facet[] calldata _diamondCut'. // The code is duplicated to prevent copying calldata to memory which // causes an error for a two dimensional array. function diamondCut( IDiamondCut.FacetCut[] memory _diamondCut, address _init, bytes memory _calldata ) internal { DiamondStorage storage ds = diamondStorage(); uint256 originalSelectorCount = ds.selectorCount; uint256 selectorCount = originalSelectorCount; bytes32 selectorSlot; // Check if last selector slot is not full // "selectorCount & 7" is a gas efficient modulo by eight "selectorCount % 8" if (selectorCount & 7 > 0) { // get last selectorSlot // "selectorSlot >> 3" is a gas efficient division by 8 "selectorSlot / 8" selectorSlot = ds.selectorSlots[selectorCount >> 3]; } // loop through diamond cut for (uint256 facetIndex; facetIndex < _diamondCut.length; facetIndex++) { (selectorCount, selectorSlot) = addReplaceRemoveFacetSelectors( selectorCount, selectorSlot, _diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].action, _diamondCut[facetIndex].functionSelectors ); } if (selectorCount != originalSelectorCount) { ds.selectorCount = uint16(selectorCount); } // If last selector slot is not full // "selectorCount & 7" is a gas efficient modulo by eight "selectorCount % 8" if (selectorCount & 7 > 0) { // "selectorSlot >> 3" is a gas efficient division by 8 "selectorSlot / 8" ds.selectorSlots[selectorCount >> 3] = selectorSlot; } emit DiamondCut(_diamondCut, _init, _calldata); initializeDiamondCut(_init, _calldata); } function addReplaceRemoveFacetSelectors( uint256 _selectorCount, bytes32 _selectorSlot, address _newFacetAddress, IDiamondCut.FacetCutAction _action, bytes4[] memory _selectors ) internal returns (uint256, bytes32) { DiamondStorage storage ds = diamondStorage(); require(_selectors.length > 0, "LibDiamondCut: No selectors in facet to cut"); if (_action == IDiamondCut.FacetCutAction.Add) { enforceHasContractCode(_newFacetAddress, "LibDiamondCut: Add facet has no code"); for (uint256 selectorIndex; selectorIndex < _selectors.length; selectorIndex++) { bytes4 selector = _selectors[selectorIndex]; bytes32 oldFacet = ds.facets[selector]; require(address(bytes20(oldFacet)) == address(0), "LibDiamondCut: Can't add function that already exists"); // add facet for selector ds.facets[selector] = bytes20(_newFacetAddress) | bytes32(_selectorCount); // "_selectorCount & 7" is a gas efficient modulo by eight "_selectorCount % 8" uint256 selectorInSlotPosition = (_selectorCount & 7) << 5; // clear selector position in slot and add selector _selectorSlot = (_selectorSlot & ~(CLEAR_SELECTOR_MASK >> selectorInSlotPosition)) | (bytes32(selector) >> selectorInSlotPosition); // if slot is full then write it to storage if (selectorInSlotPosition == 224) { // "_selectorSlot >> 3" is a gas efficient division by 8 "_selectorSlot / 8" ds.selectorSlots[_selectorCount >> 3] = _selectorSlot; _selectorSlot = 0; } _selectorCount++; } } else if (_action == IDiamondCut.FacetCutAction.Replace) { enforceHasContractCode(_newFacetAddress, "LibDiamondCut: Replace facet has no code"); for (uint256 selectorIndex; selectorIndex < _selectors.length; selectorIndex++) { bytes4 selector = _selectors[selectorIndex]; bytes32 oldFacet = ds.facets[selector]; address oldFacetAddress = address(bytes20(oldFacet)); // only useful if immutable functions exist require(oldFacetAddress != address(this), "LibDiamondCut: Can't replace immutable function"); require(oldFacetAddress != _newFacetAddress, "LibDiamondCut: Can't replace function with same function"); require(oldFacetAddress != address(0), "LibDiamondCut: Can't replace function that doesn't exist"); // replace old facet address ds.facets[selector] = (oldFacet & CLEAR_ADDRESS_MASK) | bytes20(_newFacetAddress); } } else if (_action == IDiamondCut.FacetCutAction.Remove) { require(_newFacetAddress == address(0), "LibDiamondCut: Remove facet address must be address(0)"); // "_selectorCount >> 3" is a gas efficient division by 8 "_selectorCount / 8" uint256 selectorSlotCount = _selectorCount >> 3; // "_selectorCount & 7" is a gas efficient modulo by eight "_selectorCount % 8" uint256 selectorInSlotIndex = _selectorCount & 7; for (uint256 selectorIndex; selectorIndex < _selectors.length; selectorIndex++) { if (_selectorSlot == 0) { // get last selectorSlot selectorSlotCount--; _selectorSlot = ds.selectorSlots[selectorSlotCount]; selectorInSlotIndex = 7; } else { selectorInSlotIndex--; } bytes4 lastSelector; uint256 oldSelectorsSlotCount; uint256 oldSelectorInSlotPosition; // adding a block here prevents stack too deep error { bytes4 selector = _selectors[selectorIndex]; bytes32 oldFacet = ds.facets[selector]; require(address(bytes20(oldFacet)) != address(0), "LibDiamondCut: Can't remove function that doesn't exist"); // only useful if immutable functions exist require(address(bytes20(oldFacet)) != address(this), "LibDiamondCut: Can't remove immutable function"); // replace selector with last selector in ds.facets // gets the last selector lastSelector = bytes4(_selectorSlot << (selectorInSlotIndex << 5)); if (lastSelector != selector) { // update last selector slot position info ds.facets[lastSelector] = (oldFacet & CLEAR_ADDRESS_MASK) | bytes20(ds.facets[lastSelector]); } delete ds.facets[selector]; uint256 oldSelectorCount = uint16(uint256(oldFacet)); // "oldSelectorCount >> 3" is a gas efficient division by 8 "oldSelectorCount / 8" oldSelectorsSlotCount = oldSelectorCount >> 3; // "oldSelectorCount & 7" is a gas efficient modulo by eight "oldSelectorCount % 8" oldSelectorInSlotPosition = (oldSelectorCount & 7) << 5; } if (oldSelectorsSlotCount != selectorSlotCount) { bytes32 oldSelectorSlot = ds.selectorSlots[oldSelectorsSlotCount]; // clears the selector we are deleting and puts the last selector in its place. oldSelectorSlot = (oldSelectorSlot & ~(CLEAR_SELECTOR_MASK >> oldSelectorInSlotPosition)) | (bytes32(lastSelector) >> oldSelectorInSlotPosition); // update storage with the modified slot ds.selectorSlots[oldSelectorsSlotCount] = oldSelectorSlot; } else { // clears the selector we are deleting and puts the last selector in its place. _selectorSlot = (_selectorSlot & ~(CLEAR_SELECTOR_MASK >> oldSelectorInSlotPosition)) | (bytes32(lastSelector) >> oldSelectorInSlotPosition); } if (selectorInSlotIndex == 0) { delete ds.selectorSlots[selectorSlotCount]; _selectorSlot = 0; } } _selectorCount = selectorSlotCount * 8 + selectorInSlotIndex; } else { revert("LibDiamondCut: Incorrect FacetCutAction"); } return (_selectorCount, _selectorSlot); } function initializeDiamondCut(address _init, bytes memory _calldata) internal { if (_init == address(0)) { require(_calldata.length == 0, "LibDiamondCut: _init is address(0) but_calldata is not empty"); } else { require(_calldata.length > 0, "LibDiamondCut: _calldata is empty but _init is not address(0)"); if (_init != address(this)) { enforceHasContractCode(_init, "LibDiamondCut: _init address has no code"); } (bool success, bytes memory error) = _init.delegatecall(_calldata); if (!success) { if (error.length > 0) { // bubble up the error revert(string(error)); } else { revert("LibDiamondCut: _init function reverted"); } } } } function enforceHasContractCode(address _contract, string memory _errorMessage) internal view { uint256 contractSize; assembly { contractSize := extcodesize(_contract) } require(contractSize > 0, _errorMessage); } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_contractOwner","type":"address"},{"internalType":"address","name":"_diamondCutFacet","type":"address"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"facetAddress","type":"address"},{"internalType":"enum IDiamondCut.FacetCutAction","name":"action","type":"uint8"},{"internalType":"bytes4[]","name":"functionSelectors","type":"bytes4[]"}],"indexed":false,"internalType":"struct IDiamondCut.FacetCut[]","name":"_diamondCut","type":"tuple[]"},{"indexed":false,"internalType":"address","name":"_init","type":"address"},{"indexed":false,"internalType":"bytes","name":"_calldata","type":"bytes"}],"name":"DiamondCut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040516200234938038062002349833981810160405281019062000029919062001349565b6200003a82620001ed60201b60201c565b6000600167ffffffffffffffff8111156200005a576200005962001390565b5b6040519080825280602002602001820160405280156200009757816020015b6200008362001293565b815260200190600190039081620000795790505b5090506000600167ffffffffffffffff811115620000ba57620000b962001390565b5b604051908082528060200260200182016040528015620000e95781602001602082028036833780820191505090505b509050631f931c1c60e01b816000815181106200010b576200010a620013bf565b5b60200260200101907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152505060405180606001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200160006002811115620001955762000194620013ee565b5b81526020018281525082600081518110620001b557620001b4620013bf565b5b6020026020010181905250620001e382600060405180602001604052806000815250620002cc60201b60201c565b50505050620020cb565b6000620001ff6200047b60201b60201c565b905060008160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000620002de6200047b60201b60201c565b905060008160020160009054906101000a900461ffff1661ffff16905060008190506000806007831611156200032b57836001016000600384901c81526020019081526020016000205490505b60005b8751811015620003ce57620003b083838a8481518110620003545762000353620013bf565b5b6020026020010151600001518b8581518110620003765762000375620013bf565b5b6020026020010151602001518c8681518110620003985762000397620013bf565b5b602002602001015160400151620004a860201b60201c565b80935081945050508080620003c59062001456565b9150506200032e565b50828214620003f757818460020160006101000a81548161ffff021916908361ffff1602179055505b6000600783161115620004235780846001016000600385901c8152602001908152602001600020819055505b7f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738787876040516200045893929190620017d0565b60405180910390a16200047286866200101060201b60201c565b50505050505050565b6000807fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c90508091505090565b6000806000620004bd6200047b60201b60201c565b9050600084511162000506576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004fd90620018a2565b60405180910390fd5b600060028111156200051d576200051c620013ee565b5b856002811115620005335762000532620013ee565b5b0362000789576200056486604051806060016040528060248152602001620022d5602491396200123e60201b60201c565b60005b845181101562000782576000858281518110620005895762000588620013bf565b5b602002602001015190506000836000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020549050600073ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff161462000660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000657906200193a565b60405180910390fd5b8a60001b8960601b6bffffffffffffffffffffffff191617846000016000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020819055506000600560078d16901b905080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c817fffffffff0000000000000000000000000000000000000000000000000000000060001b901c198c16179a5060e0810362000759578a85600101600060038f901c8152602001908152602001600020819055506000801b9a505b8b80620007669062001456565b9c50505050508080620007799062001456565b91505062000567565b5062000fff565b60016002811115620007a0576200079f620013ee565b5b856002811115620007b657620007b5620013ee565b5b0362000a6757620007e78660405180606001604052806028815260200162002321602891396200123e60201b60201c565b60005b845181101562000a605760008582815181106200080c576200080b620013bf565b5b602002602001015190506000836000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002054905060008160601c90503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620008e7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008de90620019d2565b60405180910390fd5b8973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000958576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200094f9062001a6a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620009ca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009c19062001b02565b60405180910390fd5b8960601b6bffffffffffffffffffffffff19166bffffffffffffffffffffffff60001b831617856000016000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002081905550505050808062000a579062001456565b915050620007ea565b5062000ffe565b60028081111562000a7d5762000a7c620013ee565b5b85600281111562000a935762000a92620013ee565b5b0362000fc057600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161462000b0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000b029062001b9a565b60405180910390fd5b6000600389901c9050600060078a16905060005b865181101562000f99576000801b8a0362000b6657828062000b419062001bbc565b9350508360010160008481526020019081526020016000205499506007915062000b77565b818062000b739062001bbc565b9250505b6000806000808a858151811062000b935762000b92620013bf565b5b602002602001015190506000886000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020549050600073ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff160362000c6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000c619062001c60565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff160362000cde576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000cd59062001cf8565b60405180910390fd5b600587901b8f901b9450817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161462000dfc57886000016000867bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020546bffffffffffffffffffffffff19166bffffffffffffffffffffffff60001b821617896000016000877bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020819055505b886000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000206000905560008160001c61ffff169050600381901c9450600560078216901b935050505085821462000f0657600087600101600084815260200190815260200160002054905081847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c827fffffffff0000000000000000000000000000000000000000000000000000000060001b901c19821617905080886001016000858152602001908152602001600020819055505062000f57565b80837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c817fffffffff0000000000000000000000000000000000000000000000000000000060001b901c198e16179c505b6000850362000f8057866001016000878152602001908152602001600020600090556000801b9c505b505050808062000f909062001456565b91505062000b1f565b508060088362000faa919062001d1a565b62000fb6919062001d65565b9950505062000ffd565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000ff49062001e16565b60405180910390fd5b5b5b878792509250509550959350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620010925760008151146200108c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620010839062001eae565b60405180910390fd5b6200123a565b6000815111620010d9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620010d09062001f46565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462001139576200113882604051806060016040528060288152602001620022f9602891396200123e60201b60201c565b5b6000808373ffffffffffffffffffffffffffffffffffffffff168360405162001163919062001faa565b600060405180830381855af49150503d8060008114620011a0576040519150601f19603f3d011682016040523d82523d6000602084013e620011a5565b606091505b5091509150816200123757600081511115620011fa57806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620011f191906200200f565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200122e90620020a9565b60405180910390fd5b50505b5050565b6000823b90506000811182906200128d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200128491906200200f565b60405180910390fd5b50505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006002811115620012d257620012d1620013ee565b5b8152602001606081525090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200131182620012e4565b9050919050565b620013238162001304565b81146200132f57600080fd5b50565b600081519050620013438162001318565b92915050565b60008060408385031215620013635762001362620012df565b5b6000620013738582860162001332565b9250506020620013868582860162001332565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600062001463826200144c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036200149857620014976200141d565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b620014da8162001304565b82525050565b60038110620014f457620014f3620013ee565b5b50565b60008190506200150782620014e0565b919050565b60006200151982620014f7565b9050919050565b6200152b816200150c565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62001594816200155d565b82525050565b6000620015a8838362001589565b60208301905092915050565b6000602082019050919050565b6000620015ce8262001531565b620015da81856200153c565b9350620015e7836200154d565b8060005b838110156200161e5781516200160288826200159a565b97506200160f83620015b4565b925050600181019050620015eb565b5085935050505092915050565b6000606083016000830151620016456000860182620014cf565b5060208301516200165a602086018262001520565b5060408301518482036040860152620016748282620015c1565b9150508091505092915050565b60006200168f83836200162b565b905092915050565b6000602082019050919050565b6000620016b182620014a3565b620016bd8185620014ae565b935083602082028501620016d185620014bf565b8060005b85811015620017135784840389528151620016f1858262001681565b9450620016fe8362001697565b925060208a01995050600181019050620016d5565b50829750879550505050505092915050565b620017308162001304565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156200177257808201518184015260208101905062001755565b60008484015250505050565b6000601f19601f8301169050919050565b60006200179c8262001736565b620017a8818562001741565b9350620017ba81856020860162001752565b620017c5816200177e565b840191505092915050565b60006060820190508181036000830152620017ec8186620016a4565b9050620017fd602083018562001725565b81810360408301526200181181846200178f565b9050949350505050565b600082825260208201905092915050565b7f4c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e206660008201527f6163657420746f20637574000000000000000000000000000000000000000000602082015250565b60006200188a602b836200181b565b915062001897826200182c565b604082019050919050565b60006020820190508181036000830152620018bd816200187b565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f60008201527f6e207468617420616c7265616479206578697374730000000000000000000000602082015250565b6000620019226035836200181b565b91506200192f82620018c4565b604082019050919050565b60006020820190508181036000830152620019558162001913565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774207265706c61636520696d6d60008201527f757461626c652066756e6374696f6e0000000000000000000000000000000000602082015250565b6000620019ba602f836200181b565b9150620019c7826200195c565b604082019050919050565b60006020820190508181036000830152620019ed81620019ab565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60008201527f6374696f6e20776974682073616d652066756e6374696f6e0000000000000000602082015250565b600062001a526038836200181b565b915062001a5f82620019f4565b604082019050919050565b6000602082019050818103600083015262001a858162001a43565b9050919050565b7f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60008201527f6374696f6e207468617420646f65736e27742065786973740000000000000000602082015250565b600062001aea6038836200181b565b915062001af78262001a8c565b604082019050919050565b6000602082019050818103600083015262001b1d8162001adb565b9050919050565b7f4c69624469616d6f6e644375743a2052656d6f7665206661636574206164647260008201527f657373206d757374206265206164647265737328302900000000000000000000602082015250565b600062001b826036836200181b565b915062001b8f8262001b24565b604082019050919050565b6000602082019050818103600083015262001bb58162001b73565b9050919050565b600062001bc9826200144c565b91506000820362001bdf5762001bde6200141d565b5b600182039050919050565b7f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360008201527f74696f6e207468617420646f65736e2774206578697374000000000000000000602082015250565b600062001c486037836200181b565b915062001c558262001bea565b604082019050919050565b6000602082019050818103600083015262001c7b8162001c39565b9050919050565b7f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560008201527f7461626c652066756e6374696f6e000000000000000000000000000000000000602082015250565b600062001ce0602e836200181b565b915062001ced8262001c82565b604082019050919050565b6000602082019050818103600083015262001d138162001cd1565b9050919050565b600062001d27826200144c565b915062001d34836200144c565b925082820262001d44816200144c565b9150828204841483151762001d5e5762001d5d6200141d565b5b5092915050565b600062001d72826200144c565b915062001d7f836200144c565b925082820190508082111562001d9a5762001d996200141d565b5b92915050565b7f4c69624469616d6f6e644375743a20496e636f7272656374204661636574437560008201527f74416374696f6e00000000000000000000000000000000000000000000000000602082015250565b600062001dfe6027836200181b565b915062001e0b8262001da0565b604082019050919050565b6000602082019050818103600083015262001e318162001def565b9050919050565b7f4c69624469616d6f6e644375743a205f696e697420697320616464726573732860008201527f3029206275745f63616c6c64617461206973206e6f7420656d70747900000000602082015250565b600062001e96603c836200181b565b915062001ea38262001e38565b604082019050919050565b6000602082019050818103600083015262001ec98162001e87565b9050919050565b7f4c69624469616d6f6e644375743a205f63616c6c6461746120697320656d707460008201527f7920627574205f696e6974206973206e6f742061646472657373283029000000602082015250565b600062001f2e603d836200181b565b915062001f3b8262001ed0565b604082019050919050565b6000602082019050818103600083015262001f618162001f1f565b9050919050565b600081905092915050565b600062001f808262001736565b62001f8c818562001f68565b935062001f9e81856020860162001752565b80840191505092915050565b600062001fb8828462001f73565b915081905092915050565b600081519050919050565b600062001fdb8262001fc3565b62001fe781856200181b565b935062001ff981856020860162001752565b62002004816200177e565b840191505092915050565b600060208201905081810360008301526200202b818462001fce565b905092915050565b7f4c69624469616d6f6e644375743a205f696e69742066756e6374696f6e20726560008201527f7665727465640000000000000000000000000000000000000000000000000000602082015250565b6000620020916026836200181b565b91506200209e8262002033565b604082019050919050565b60006020820190508181036000830152620020c48162002082565b9050919050565b6101fa80620020db6000396000f3fe60806040523661000b57005b6000807fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c9050809150600082600001600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000205460601c9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610121576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610118906101a4565b60405180910390fd5b3660008037600080366000845af43d6000803e8060008114610142573d6000f35b3d6000fd5b600082825260208201905092915050565b7f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f74206578697374600082015250565b600061018e602083610147565b915061019982610158565b602082019050919050565b600060208201905081810360008301526101bd81610181565b905091905056fea2646970667358221220e140e07fe91d2672f619931eee529de3a4707e2c695330200aa8a522c3afa7a464736f6c634300081500334c69624469616d6f6e644375743a2041646420666163657420686173206e6f20636f64654c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a205265706c61636520666163657420686173206e6f20636f64650000000000000000000000002429eb38cb9b456160937e11aefc80879a2d2712000000000000000000000000fb68abb5c4779c6ccf751267e5d09058f688b2b9
Deployed Bytecode
0x60806040523661000b57005b6000807fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c9050809150600082600001600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000205460601c9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610121576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610118906101a4565b60405180910390fd5b3660008037600080366000845af43d6000803e8060008114610142573d6000f35b3d6000fd5b600082825260208201905092915050565b7f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f74206578697374600082015250565b600061018e602083610147565b915061019982610158565b602082019050919050565b600060208201905081810360008301526101bd81610181565b905091905056fea2646970667358221220e140e07fe91d2672f619931eee529de3a4707e2c695330200aa8a522c3afa7a464736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002429eb38cb9b456160937e11aefc80879a2d2712000000000000000000000000fb68abb5c4779c6ccf751267e5d09058f688b2b9
-----Decoded View---------------
Arg [0] : _contractOwner (address): 0x2429EB38cB9b456160937e11aefc80879a2d2712
Arg [1] : _diamondCutFacet (address): 0xfB68ABb5c4779c6CcF751267E5D09058F688b2b9
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002429eb38cb9b456160937e11aefc80879a2d2712
Arg [1] : 000000000000000000000000fb68abb5c4779c6ccf751267e5d09058f688b2b9
[ 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.