CRO Price: $0.09 (+11.22%)

Contract

0x5982152e6d459d03398048bA3fF25189682584AB

Overview

CRO Balance

Cronos Chain LogoCronos Chain LogoCronos Chain Logo0 CRO

CRO Value

$0.00
Transaction Hash
Method
Block
From
To
Create CRC20Laun...191689022025-04-23 2:30:127 hrs ago1745375412IN
0x5982152e...9682584AB
0 CRO0.843010383,787.5
Create CRC20Laun...191688862025-04-23 2:28:417 hrs ago1745375321IN
0x5982152e...9682584AB
0 CRO0.843146733,787.5
Create CRC20Laun...191651502025-04-22 20:36:1413 hrs ago1745354174IN
0x5982152e...9682584AB
0 CRO1.264242885,681.25
Create CRC20Laun...191577412025-04-22 8:56:5325 hrs ago1745312213IN
0x5982152e...9682584AB
0 CRO0.842692233,787.5
Create CRC20Laun...191577252025-04-22 8:55:2225 hrs ago1745312122IN
0x5982152e...9682584AB
0 CRO0.842692233,787.5
Create CRC20Laun...191363492025-04-20 23:23:022 days ago1745191382IN
0x5982152e...9682584AB
0 CRO0.834830683,750.75
Create CRC20Laun...191360952025-04-20 22:59:072 days ago1745189947IN
0x5982152e...9682584AB
0 CRO1.053706174,734.375
Create CRC20Laun...191354362025-04-20 21:57:052 days ago1745186225IN
0x5982152e...9682584AB
0 CRO0.838746613,768.75
Create CRC20Laun...191353382025-04-20 21:47:522 days ago1745185672IN
0x5982152e...9682584AB
0 CRO0.834740663,750.75
Create CRC20Laun...191304972025-04-20 14:12:242 days ago1745158344IN
0x5982152e...9682584AB
0 CRO0.842850863,786.375
Create CRC20Laun...191278502025-04-20 10:03:323 days ago1745143412IN
0x5982152e...9682584AB
0 CRO0.842919483,787.5
Create CRC20Laun...191263622025-04-20 7:43:363 days ago1745135016IN
0x5982152e...9682584AB
0 CRO0.864271993,882.1875
Create CRC20Laun...191196702025-04-19 21:15:053 days ago1745097305IN
0x5982152e...9682584AB
0 CRO0.859801033,864.1875
Create CRC20Laun...191140052025-04-19 12:22:473 days ago1745065367IN
0x5982152e...9682584AB
0 CRO1.26472015,681.25
Create CRC20Laun...191004832025-04-18 15:14:224 days ago1744989262IN
0x5982152e...9682584AB
0 CRO0.842646783,787.5
Create CRC20Laun...190905112025-04-17 23:34:505 days ago1744932890IN
0x5982152e...9682584AB
0 CRO0.834618753,750
Create CRC20Laun...190885892025-04-17 20:33:515 days ago1744922031IN
0x5982152e...9682584AB
0 CRO1.264106535,681.25
Create CRC20Laun...190786682025-04-17 4:56:386 days ago1744865798IN
0x5982152e...9682584AB
0 CRO0.839344923,768.1875
Create CRC20Laun...190413962025-04-14 18:24:358 days ago1744655075IN
0x5982152e...9682584AB
0 CRO0.839244093,768.75
Create CRC20Laun...190349642025-04-14 8:20:119 days ago1744618811IN
0x5982152e...9682584AB
0 CRO0.842874033,787.5
Create CRC20Laun...190301772025-04-14 0:50:439 days ago1744591843IN
0x5982152e...9682584AB
0 CRO0.842737683,787.5
Create CRC20Laun...190197392025-04-13 8:30:2710 days ago1744533027IN
0x5982152e...9682584AB
0 CRO1.26581095,681.25
Create CRC20Laun...190141582025-04-12 23:46:3010 days ago1744501590IN
0x5982152e...9682584AB
0 CRO1.265129155,681.25
Create CRC20Laun...189968772025-04-11 20:42:0811 days ago1744404128IN
0x5982152e...9682584AB
0 CRO0.842714553,786.375
Create CRC20Laun...189912502025-04-11 11:51:1311 days ago1744372273IN
0x5982152e...9682584AB
0 CRO1.26417475,681.25
VIEW ADVANCED FILTER

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
191689022025-04-23 2:30:127 hrs ago1745375412
0x5982152e...9682584AB
 Contract Creation0 CRO
191688862025-04-23 2:28:417 hrs ago1745375321
0x5982152e...9682584AB
 Contract Creation0 CRO
191651502025-04-22 20:36:1413 hrs ago1745354174
0x5982152e...9682584AB
 Contract Creation0 CRO
191577412025-04-22 8:56:5325 hrs ago1745312213
0x5982152e...9682584AB
 Contract Creation0 CRO
191577252025-04-22 8:55:2225 hrs ago1745312122
0x5982152e...9682584AB
 Contract Creation0 CRO
191363492025-04-20 23:23:022 days ago1745191382
0x5982152e...9682584AB
 Contract Creation0 CRO
191360952025-04-20 22:59:072 days ago1745189947
0x5982152e...9682584AB
 Contract Creation0 CRO
191354362025-04-20 21:57:052 days ago1745186225
0x5982152e...9682584AB
 Contract Creation0 CRO
191353382025-04-20 21:47:522 days ago1745185672
0x5982152e...9682584AB
 Contract Creation0 CRO
191304972025-04-20 14:12:242 days ago1745158344
0x5982152e...9682584AB
 Contract Creation0 CRO
191278502025-04-20 10:03:323 days ago1745143412
0x5982152e...9682584AB
 Contract Creation0 CRO
191263622025-04-20 7:43:363 days ago1745135016
0x5982152e...9682584AB
 Contract Creation0 CRO
191196702025-04-19 21:15:053 days ago1745097305
0x5982152e...9682584AB
 Contract Creation0 CRO
191140052025-04-19 12:22:473 days ago1745065367
0x5982152e...9682584AB
 Contract Creation0 CRO
191004832025-04-18 15:14:224 days ago1744989262
0x5982152e...9682584AB
 Contract Creation0 CRO
190905112025-04-17 23:34:505 days ago1744932890
0x5982152e...9682584AB
 Contract Creation0 CRO
190885892025-04-17 20:33:515 days ago1744922031
0x5982152e...9682584AB
 Contract Creation0 CRO
190786682025-04-17 4:56:386 days ago1744865798
0x5982152e...9682584AB
 Contract Creation0 CRO
190413962025-04-14 18:24:358 days ago1744655075
0x5982152e...9682584AB
 Contract Creation0 CRO
190349642025-04-14 8:20:119 days ago1744618811
0x5982152e...9682584AB
 Contract Creation0 CRO
190301772025-04-14 0:50:439 days ago1744591843
0x5982152e...9682584AB
 Contract Creation0 CRO
190197392025-04-13 8:30:2710 days ago1744533027
0x5982152e...9682584AB
 Contract Creation0 CRO
190141582025-04-12 23:46:3010 days ago1744501590
0x5982152e...9682584AB
 Contract Creation0 CRO
189968772025-04-11 20:42:0811 days ago1744404128
0x5982152e...9682584AB
 Contract Creation0 CRO
189912502025-04-11 11:51:1311 days ago1744372273
0x5982152e...9682584AB
 Contract Creation0 CRO
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CRC20LaunchpadFactory

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : CRC20LaunchpadFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./ICRC20.sol";

contract CRC20LaunchpadFactory is Ownable, Pausable, ReentrancyGuard {
    mapping(uint8 => address) public templates;

    event SetCRC20Template(uint8 templateId, address oldCRC20Template, address newCRC20Template);

    event LaunchpadCRC20(
        address creator,
        address crc20Address,
        string name,
        string symbol,
        uint256 totalSupply
    );

    function createCRC20Launchpad(
        uint8 templateId,
        string memory _name,
        string memory _symbol,
        uint256 _totalSupply
    ) external nonReentrant whenNotPaused returns (address crc20Address) {
        require(_totalSupply > 0, "max supply is zero");
        require(templates[templateId] != address(0), "CRC20 template not set");

        crc20Address = Clones.clone(templates[templateId]);
        ICRC20(crc20Address).initialize(msg.sender, _name, _symbol, _totalSupply);

        emit LaunchpadCRC20(msg.sender, crc20Address, _name, _symbol, _totalSupply);
    }

    /**
     * @dev set crc20 template
     * @param _crc20Template: address of the template
     */
    function setCRC20Template(uint8 _templateId, address _crc20Template) external onlyOwner whenNotPaused {
        if (_crc20Template != address(0)) {
            require(Address.isContract(_crc20Template), "CRC20LaunchpadFactory: template must be contract");
        }
        emit SetCRC20Template(_templateId, templates[_templateId], _crc20Template);
        templates[_templateId] = _crc20Template;
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 8 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

File 4 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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 Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 8 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 7 of 8 : ICRC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

interface ICRC20 {
    function initialize(
        address _receiver,
        string memory _name,
        string memory _symbol,
        uint256 _totalSupply
    ) external;
}

File 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"address","name":"crc20Address","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LaunchpadCRC20","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"templateId","type":"uint8"},{"indexed":false,"internalType":"address","name":"oldCRC20Template","type":"address"},{"indexed":false,"internalType":"address","name":"newCRC20Template","type":"address"}],"name":"SetCRC20Template","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint8","name":"templateId","type":"uint8"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"createCRC20Launchpad","outputs":[{"internalType":"address","name":"crc20Address","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_templateId","type":"uint8"},{"internalType":"address","name":"_crc20Template","type":"address"}],"name":"setCRC20Template","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"templates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a33610030565b6000805460ff60a01b1916905560018055610080565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610b188061008f6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b146100d4578063b4b7f20d146100f9578063d3563fb114610122578063f2fde38b14610135578063feac51381461014857600080fd5b80633f4ba83a146100985780635c975abb146100a2578063715018a6146100c45780638456cb59146100cc575b600080fd5b6100a061015b565b005b600054600160a01b900460ff1660405190151581526020015b60405180910390f35b6100a0610198565b6100a06101cc565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100bb565b6100e16101073660046107fe565b6002602052600090815260409020546001600160a01b031681565b6100e16101303660046108c3565b6101fe565b6100a0610143366004610956565b6103fe565b6100a0610156366004610971565b610499565b6000546001600160a01b0316331461018e5760405162461bcd60e51b8152600401610185906109a4565b60405180910390fd5b6101966105fe565b565b6000546001600160a01b031633146101c25760405162461bcd60e51b8152600401610185906109a4565b610196600061069b565b6000546001600160a01b031633146101f65760405162461bcd60e51b8152600401610185906109a4565b6101966106eb565b60006002600154036102525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610185565b6002600155600054600160a01b900460ff16156102815760405162461bcd60e51b8152600401610185906109d9565b600082116102c65760405162461bcd60e51b81526020600482015260126024820152716d617820737570706c79206973207a65726f60701b6044820152606401610185565b60ff85166000908152600260205260409020546001600160a01b03166103275760405162461bcd60e51b815260206004820152601660248201527510d490cc8c081d195b5c1b185d19481b9bdd081cd95d60521b6044820152606401610185565b60ff851660009081526002602052604090205461034c906001600160a01b0316610750565b6040516326896a5b60e11b81529091506001600160a01b03821690634d12d4b690610381903390889088908890600401610a49565b600060405180830381600087803b15801561039b57600080fd5b505af11580156103af573d6000803e3d6000fd5b505050507ff4482304968c4dcbbdf6c8dd8883329a9e158bfb67246ab91c4a5f606f70de3b33828686866040516103ea959493929190610a91565b60405180910390a160018055949350505050565b6000546001600160a01b031633146104285760405162461bcd60e51b8152600401610185906109a4565b6001600160a01b03811661048d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610185565b6104968161069b565b50565b6000546001600160a01b031633146104c35760405162461bcd60e51b8152600401610185906109a4565b600054600160a01b900460ff16156104ed5760405162461bcd60e51b8152600401610185906109d9565b6001600160a01b0381161561056c576001600160a01b0381163b61056c5760405162461bcd60e51b815260206004820152603060248201527f43524332304c61756e6368706164466163746f72793a2074656d706c6174652060448201526f1b5d5cdd0818994818dbdb9d1c9858dd60821b6064820152608401610185565b60ff82166000818152600260209081526040918290205482519384526001600160a01b0390811691840191909152831682820152517f621cad24c0c58db03479219d8712c6567a41044fdef061e14f52e0e9e066adcf9181900360600190a160ff91909116600090815260026020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b600054600160a01b900460ff1661064e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610185565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16156107155760405162461bcd60e51b8152600401610185906109d9565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861067e3390565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b0381166107e85760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b6044820152606401610185565b919050565b803560ff811681146107e857600080fd5b60006020828403121561081057600080fd5b610819826107ed565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261084757600080fd5b813567ffffffffffffffff8082111561086257610862610820565b604051601f8301601f19908116603f0116810190828211818310171561088a5761088a610820565b816040528381528660208588010111156108a357600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156108d957600080fd5b6108e2856107ed565b9350602085013567ffffffffffffffff808211156108ff57600080fd5b61090b88838901610836565b9450604087013591508082111561092157600080fd5b5061092e87828801610836565b949793965093946060013593505050565b80356001600160a01b03811681146107e857600080fd5b60006020828403121561096857600080fd5b6108198261093f565b6000806040838503121561098457600080fd5b61098d836107ed565b915061099b6020840161093f565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000815180845260005b81811015610a2957602081850181015186830182015201610a0d565b506000602082860101526020601f19601f83011685010191505092915050565b6001600160a01b0385168152608060208201819052600090610a6d90830186610a03565b8281036040840152610a7f8186610a03565b91505082606083015295945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090610abd90830186610a03565b8281036060840152610acf8186610a03565b915050826080830152969550505050505056fea2646970667358221220082d9747928018649205ec6cbe696407d5456fac56a24e4af7655ef2ff3790b564736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b146100d4578063b4b7f20d146100f9578063d3563fb114610122578063f2fde38b14610135578063feac51381461014857600080fd5b80633f4ba83a146100985780635c975abb146100a2578063715018a6146100c45780638456cb59146100cc575b600080fd5b6100a061015b565b005b600054600160a01b900460ff1660405190151581526020015b60405180910390f35b6100a0610198565b6100a06101cc565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100bb565b6100e16101073660046107fe565b6002602052600090815260409020546001600160a01b031681565b6100e16101303660046108c3565b6101fe565b6100a0610143366004610956565b6103fe565b6100a0610156366004610971565b610499565b6000546001600160a01b0316331461018e5760405162461bcd60e51b8152600401610185906109a4565b60405180910390fd5b6101966105fe565b565b6000546001600160a01b031633146101c25760405162461bcd60e51b8152600401610185906109a4565b610196600061069b565b6000546001600160a01b031633146101f65760405162461bcd60e51b8152600401610185906109a4565b6101966106eb565b60006002600154036102525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610185565b6002600155600054600160a01b900460ff16156102815760405162461bcd60e51b8152600401610185906109d9565b600082116102c65760405162461bcd60e51b81526020600482015260126024820152716d617820737570706c79206973207a65726f60701b6044820152606401610185565b60ff85166000908152600260205260409020546001600160a01b03166103275760405162461bcd60e51b815260206004820152601660248201527510d490cc8c081d195b5c1b185d19481b9bdd081cd95d60521b6044820152606401610185565b60ff851660009081526002602052604090205461034c906001600160a01b0316610750565b6040516326896a5b60e11b81529091506001600160a01b03821690634d12d4b690610381903390889088908890600401610a49565b600060405180830381600087803b15801561039b57600080fd5b505af11580156103af573d6000803e3d6000fd5b505050507ff4482304968c4dcbbdf6c8dd8883329a9e158bfb67246ab91c4a5f606f70de3b33828686866040516103ea959493929190610a91565b60405180910390a160018055949350505050565b6000546001600160a01b031633146104285760405162461bcd60e51b8152600401610185906109a4565b6001600160a01b03811661048d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610185565b6104968161069b565b50565b6000546001600160a01b031633146104c35760405162461bcd60e51b8152600401610185906109a4565b600054600160a01b900460ff16156104ed5760405162461bcd60e51b8152600401610185906109d9565b6001600160a01b0381161561056c576001600160a01b0381163b61056c5760405162461bcd60e51b815260206004820152603060248201527f43524332304c61756e6368706164466163746f72793a2074656d706c6174652060448201526f1b5d5cdd0818994818dbdb9d1c9858dd60821b6064820152608401610185565b60ff82166000818152600260209081526040918290205482519384526001600160a01b0390811691840191909152831682820152517f621cad24c0c58db03479219d8712c6567a41044fdef061e14f52e0e9e066adcf9181900360600190a160ff91909116600090815260026020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b600054600160a01b900460ff1661064e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610185565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16156107155760405162461bcd60e51b8152600401610185906109d9565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861067e3390565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b0381166107e85760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b6044820152606401610185565b919050565b803560ff811681146107e857600080fd5b60006020828403121561081057600080fd5b610819826107ed565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261084757600080fd5b813567ffffffffffffffff8082111561086257610862610820565b604051601f8301601f19908116603f0116810190828211818310171561088a5761088a610820565b816040528381528660208588010111156108a357600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156108d957600080fd5b6108e2856107ed565b9350602085013567ffffffffffffffff808211156108ff57600080fd5b61090b88838901610836565b9450604087013591508082111561092157600080fd5b5061092e87828801610836565b949793965093946060013593505050565b80356001600160a01b03811681146107e857600080fd5b60006020828403121561096857600080fd5b6108198261093f565b6000806040838503121561098457600080fd5b61098d836107ed565b915061099b6020840161093f565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000815180845260005b81811015610a2957602081850181015186830182015201610a0d565b506000602082860101526020601f19601f83011685010191505092915050565b6001600160a01b0385168152608060208201819052600090610a6d90830186610a03565b8281036040840152610a7f8186610a03565b91505082606083015295945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090610abd90830186610a03565b8281036060840152610acf8186610a03565b915050826080830152969550505050505056fea2646970667358221220082d9747928018649205ec6cbe696407d5456fac56a24e4af7655ef2ff3790b564736f6c63430008120033

Block Transaction Gas Used Reward
view all blocks validated

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.