Verified contractPartialMIT
CollectibleUnrulyMonsters
Address0x6a7ff708092fa19a72d5e4f7ecddef0140425b68
- Balance
0.003 ETH
- Transactions
7
- Compiler
solc 0.8.18
- Same code
Only this contract
Details
- Compiler
- solc 0.8.18+commit.87f61d96
- Language
- solidity
- Optimization
- Yes, 10,000 runs
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 20,125,799
- Creation transaction
- 0xb7f0d68dd2…8fd95c96d7
- Proxy implementation
- 0xe8646eca…798b9948HeyMintERC721AReference
74 files
The source code is large: one file is shown at a time. Choose a file in the list.
- contracts/CollectibleUnrulyMonsters.solmain6.13 KB
- @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol3.15 KB
- @openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol921 B
- @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol6.63 KB
- @openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol3.09 KB
- @openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol3.38 KB
- @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol8.28 KB
- @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol1.35 KB
- @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol2.3 KB
- @openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol8.57 KB
- @openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol9.31 KB
- @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol864 B
- @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol12.52 KB
- @openzeppelin/contracts/access/Ownable.sol2.62 KB
- @openzeppelin/contracts/interfaces/IERC2981.sol888 B
- @openzeppelin/contracts/security/Pausable.sol2.55 KB
- @openzeppelin/contracts/security/ReentrancyGuard.sol2.84 KB
- @openzeppelin/contracts/token/ERC1155/ERC1155.sol17.26 KB
- @openzeppelin/contracts/token/ERC1155/IERC1155.sol4.07 KB
- @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol2.5 KB
- @openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol2 KB
- @openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol675 B
- @openzeppelin/contracts/token/ERC721/ERC721.sol17.31 KB
- @openzeppelin/contracts/token/ERC721/IERC721.sol4.98 KB
- @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol987 B
- @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol6.81 KB
- @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol1.02 KB
- @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol761 B
- @openzeppelin/contracts/token/common/ERC2981.sol4.1 KB
- @openzeppelin/contracts/utils/Address.sol9.16 KB
- @openzeppelin/contracts/utils/Context.sol844 B
- @openzeppelin/contracts/utils/Counters.sol1.4 KB
- @openzeppelin/contracts/utils/StorageSlot.sol2.67 KB
- @openzeppelin/contracts/utils/Strings.sol2.25 KB
- @openzeppelin/contracts/utils/cryptography/ECDSA.sol8.54 KB
- @openzeppelin/contracts/utils/introspection/ERC165.sol987 B
- @openzeppelin/contracts/utils/introspection/IERC165.sol853 B
- @openzeppelin/contracts/utils/math/Math.sol12.51 KB
- contracts/AddressRelay.sol8.67 KB
- contracts/implementations/HeyMintERC721ABase.sol10.92 KB
- contracts/implementations/HeyMintERC721AExtensionA.sol7.29 KB
- contracts/implementations/HeyMintERC721AExtensionB.sol17.34 KB
- contracts/implementations/HeyMintERC721AExtensionC.sol18.05 KB
- contracts/implementations/HeyMintERC721AExtensionD.sol16.27 KB
- contracts/implementations/HeyMintERC721AExtensionE.sol19.17 KB
- contracts/implementations/HeyMintERC721AReference.sol14.84 KB
- contracts/implementations/HeyMintERC721AUpgradeable.sol10.77 KB
- contracts/interfaces/IAddressRelay.sol2.75 KB
- contracts/interfaces/IDelegateRegistry.sol12.38 KB
- contracts/interfaces/IERC165.sol539 B
- contracts/interfaces/IERC173.sol803 B
- contracts/interfaces/IExchangeOperatorAddressList.sol411 B
- contracts/interfaces/IHeyMintDefaults.sol200 B
- contracts/libraries/HeyMintStorage.sol10.54 KB
- contracts/libraries/RegistryHashes.sol18.55 KB
- contracts/libraries/RegistryOps.sol1.05 KB
- contracts/libraries/RegistryStorage.sol4.1 KB
- contracts/testContracts/DelegateRegistry.sol27.72 KB
- contracts/testContracts/EnumerableERC1155.sol21.37 KB
- contracts/testContracts/EnumerableERC721.sol2.86 KB
- contracts/testContracts/HeyMintDefaults.sol877 B
- erc721a-upgradeable/contracts/ERC721AStorage.sol1.96 KB
- erc721a-upgradeable/contracts/ERC721AUpgradeable.sol42.78 KB
- erc721a-upgradeable/contracts/ERC721A__Initializable.sol3.36 KB
- erc721a-upgradeable/contracts/ERC721A__InitializableStorage.sol752 B
- erc721a-upgradeable/contracts/IERC721AUpgradeable.sol8.72 KB
- erc721a-upgradeable/contracts/extensions/ERC4907AStorage.sol636 B
- erc721a-upgradeable/contracts/extensions/ERC4907AUpgradeable.sol3.7 KB
- erc721a-upgradeable/contracts/extensions/ERC721AQueryableUpgradeable.sol6.64 KB
- erc721a-upgradeable/contracts/extensions/IERC4907AUpgradeable.sol1.34 KB
- erc721a-upgradeable/contracts/extensions/IERC721AQueryableUpgradeable.sol2.47 KB
- operator-filter-registry/src/IOperatorFilterRegistry.sol6.21 KB
- operator-filter-registry/src/upgradeable/OperatorFiltererUpgradeable.sol3.73 KB
- operator-filter-registry/src/upgradeable/RevokableOperatorFiltererUpgradeable.sol3.75 KB
contracts/CollectibleUnrulyMonsters.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
//
// ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗████████╗██╗██████╗ ██╗ ███████╗ ██╗ ██╗███╗ ██╗██████╗ ██╗ ██╗██╗ ██╗ ██╗ ███╗ ███╗ ██████╗ ███╗ ██╗███████╗████████╗███████╗██████╗ ███████╗
// ██╔════╝██╔═══██╗██║ ██║ ██╔════╝██╔════╝╚══██╔══╝██║██╔══██╗██║ ██╔════╝ ██║ ██║████╗ ██║██╔══██╗██║ ██║██║ ╚██╗ ██╔╝ ████╗ ████║██╔═══██╗████╗ ██║██╔════╝╚══██╔══╝██╔════╝██╔══██╗██╔════╝
// ██║ ██║ ██║██║ ██║ █████╗ ██║ ██║ ██║██████╔╝██║ █████╗ ██║ ██║██╔██╗ ██║██████╔╝██║ ██║██║ ╚████╔╝ ██╔████╔██║██║ ██║██╔██╗ ██║███████╗ ██║ █████╗ ██████╔╝███████╗
// ██║ ██║ ██║██║ ██║ ██╔══╝ ██║ ██║ ██║██╔══██╗██║ ██╔══╝ ██║ ██║██║╚██╗██║██╔══██╗██║ ██║██║ ╚██╔╝ ██║╚██╔╝██║██║ ██║██║╚██╗██║╚════██║ ██║ ██╔══╝ ██╔══██╗╚════██║
// ╚██████╗╚██████╔╝███████╗███████╗███████╗╚██████╗ ██║ ██║██████╔╝███████╗███████╗ ╚██████╔╝██║ ╚████║██║ ██║╚██████╔╝███████╗██║ ██║ ╚═╝ ██║╚██████╔╝██║ ╚████║███████║ ██║ ███████╗██║ ██║███████║
// ╚═════╝ ╚═════╝ ╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝
//
// Collectible Unruly Monsters - generated with HeyMint.xyz Launchpad - https://nft-launchpad.heymint.xyz
//
import {StorageSlot} from "@openzeppelin/contracts/utils/StorageSlot.sol";
import {IAddressRelay} from "./interfaces/IAddressRelay.sol";
import {BaseConfig} from "./libraries/HeyMintStorage.sol";
contract CollectibleUnrulyMonsters {
bytes32 internal constant _IMPLEMENTATION_SLOT =
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
bytes32 internal constant _ADDRESS_RELAY_SLOT =
keccak256("heymint.launchpad.addressRelay");
/**
* @notice Initializes the child contract with the base implementation address and the configuration settings
* @param _name The name of the NFT
* @param _symbol The symbol of the NFT
* @param _baseConfig Base configuration settings
*/
constructor(
string memory _name,
string memory _symbol,
address _addressRelay,
address _implementation,
BaseConfig memory _baseConfig
) {
StorageSlot
.getAddressSlot(_IMPLEMENTATION_SLOT)
.value = _implementation;
StorageSlot.getAddressSlot(_ADDRESS_RELAY_SLOT).value = _addressRelay;
IAddressRelay addressRelay = IAddressRelay(
StorageSlot.getAddressSlot(_ADDRESS_RELAY_SLOT).value
);
address implContract = addressRelay.fallbackImplAddress();
(bool success, ) = implContract.delegatecall(
abi.encodeWithSelector(0xfdd7fbcc, _name, _symbol, _baseConfig)
);
require(success);
}
/**
* @dev Delegates the current call to nftImplementation
*
* This function does not return to its internal call site - it will return directly to the external caller.
*/
fallback() external payable {
IAddressRelay addressRelay = IAddressRelay(
StorageSlot.getAddressSlot(_ADDRESS_RELAY_SLOT).value
);
address implContract = addressRelay.getImplAddress(msg.sig);
assembly {
calldatacopy(0, 0, calldatasize())
let result := delegatecall(
gas(),
implContract,
0,
calldatasize(),
0,
0
)
returndatacopy(0, 0, returndatasize())
switch result
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
receive() external payable {}
}
Compiler settingsShow
{
"optimizer": {
"runs": 10000,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.