Holesky Testnet

Contract

0xb7EA491BEE079bD55D4A69caF6bba53232913BdA

Overview

ETH Balance

0.178730366646798288 ETH

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Launch Token Fre...31098602025-01-09 12:36:1276 days ago1736426172IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100026
Launch Token Fre...31092472025-01-09 10:25:4876 days ago1736418348IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100003
Launch Token Fre...31087052025-01-09 8:31:1276 days ago1736411472IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100006
Launch Token Fre...31064892025-01-09 0:39:0077 days ago1736383140IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100001
Launch Token Fre...31064072025-01-09 0:21:1277 days ago1736382072IN
0xb7EA491B...232913BdA
0 ETH0.000001760.00100001
Launch Token Fre...31062292025-01-08 23:42:1277 days ago1736379732IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100001
Launch Token Fre...31061422025-01-08 23:23:4877 days ago1736378628IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100001
Launch Token Fre...31060582025-01-08 23:05:3677 days ago1736377536IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100001
Launch Token Fre...31053902025-01-08 20:42:0077 days ago1736368920IN
0xb7EA491B...232913BdA
0 ETH0.000001720.00100049
Launch Token Fre...31053782025-01-08 20:39:3677 days ago1736368776IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100049
Launch Token Fre...31053682025-01-08 20:37:2477 days ago1736368644IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100047
Launch Token Fre...31053622025-01-08 20:36:1277 days ago1736368572IN
0xb7EA491B...232913BdA
0 ETH0.000001740.0010006
Launch Token Fre...31053452025-01-08 20:32:4877 days ago1736368368IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100074
Launch Token Fre...31053412025-01-08 20:32:0077 days ago1736368320IN
0xb7EA491B...232913BdA
0 ETH0.000001720.00100072
Launch Token Fre...31051702025-01-08 19:56:0077 days ago1736366160IN
0xb7EA491B...232913BdA
0 ETH0.000001730.00100315
Launch Token Fre...31051552025-01-08 19:53:0077 days ago1736365980IN
0xb7EA491B...232913BdA
0 ETH0.000001730.00100446
Launch Token Fre...31051012025-01-08 19:41:1277 days ago1736365272IN
0xb7EA491B...232913BdA
0 ETH0.000001760.00100868
Launch Token Fre...31050462025-01-08 19:29:2477 days ago1736364564IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00101011
Launch Token Fre...31050362025-01-08 19:27:2477 days ago1736364444IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00101086
Launch Token Fre...31049812025-01-08 19:15:0077 days ago1736363700IN
0xb7EA491B...232913BdA
0 ETH0.000001760.00101327
Launch Token Fre...31049122025-01-08 19:00:1277 days ago1736362812IN
0xb7EA491B...232913BdA
0 ETH0.000001770.00101868
Launch Token Fre...31045142025-01-08 17:35:1277 days ago1736357712IN
0xb7EA491B...232913BdA
0 ETH0.000002590.00148493
Launch Token Fre...30994222025-01-07 23:30:3678 days ago1736292636IN
0xb7EA491B...232913BdA
0 ETH0.000001720.00100001
Launch Token Fre...30992652025-01-07 22:57:3678 days ago1736290656IN
0xb7EA491B...232913BdA
0 ETH0.000001740.00100002
Launch Token Fre...30991822025-01-07 22:40:1278 days ago1736289612IN
0xb7EA491B...232913BdA
0 ETH0.000001720.00100001
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x6080604031098602025-01-09 12:36:1276 days ago1736426172
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031092472025-01-09 10:25:4876 days ago1736418348
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031087052025-01-09 8:31:1276 days ago1736411472
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031064892025-01-09 0:39:0077 days ago1736383140
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031064072025-01-09 0:21:1277 days ago1736382072
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031062292025-01-08 23:42:1277 days ago1736379732
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031061422025-01-08 23:23:4877 days ago1736378628
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031060582025-01-08 23:05:3677 days ago1736377536
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031053902025-01-08 20:42:0077 days ago1736368920
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031053782025-01-08 20:39:3677 days ago1736368776
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031053682025-01-08 20:37:2477 days ago1736368644
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031053622025-01-08 20:36:1277 days ago1736368572
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031053452025-01-08 20:32:4877 days ago1736368368
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031053412025-01-08 20:32:0077 days ago1736368320
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031051702025-01-08 19:56:0077 days ago1736366160
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031051552025-01-08 19:53:0077 days ago1736365980
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031051012025-01-08 19:41:1277 days ago1736365272
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031050462025-01-08 19:29:2477 days ago1736364564
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031050362025-01-08 19:27:2477 days ago1736364444
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031049812025-01-08 19:15:0077 days ago1736363700
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031049122025-01-08 19:00:1277 days ago1736362812
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604031045142025-01-08 17:35:1277 days ago1736357712
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604030994222025-01-07 23:30:3678 days ago1736292636
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604030992652025-01-07 22:57:3678 days ago1736290656
0xb7EA491B...232913BdA
 Contract Creation0 ETH
0x6080604030991822025-01-07 22:40:1278 days ago1736289612
0xb7EA491B...232913BdA
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x919b7bE7...0f22cBF07
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Deployyyyer

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 10 : Deployyyyer.sol
// SPDX-License-Identifier: MIT
/*********************************************************************************************\
* Deployyyyer: https://deployyyyer.io
* Twitter: https://x.com/deployyyyer
* Telegram: https://t.me/Deployyyyer
/*********************************************************************************************/
pragma solidity ^0.8.23;


import { LibDiamond } from "./libraries/LibDiamond.sol";
import { IDiamondCut } from "./interfaces/IDiamondCut.sol";

import "./libraries/LibDiamond.sol";
import "./interfaces/IDiamondLoupe.sol";
import "./interfaces/IDiamondCut.sol";
import "./interfaces/IERC173.sol";
import "./interfaces/IERC165.sol";
import "./interfaces/IERC20.sol";
import { INewToken, IUniswapV2Router02 } from "./interfaces/INewToken.sol";
import "./libraries/LibAppStorage.sol";
//import "hardhat/console.sol";

/// @title Deployyyyer 
/// @notice Diamond Proxy for Deployyyyer
/// @dev 
contract Deployyyyer { 
    AppStorage internal s;
    event Transfer(address indexed from, address indexed to, uint256 value);
    //event Approval(address indexed owner, address indexed spender, uint256 value);
    event FactoryBuilt(string name, string symbol, uint256 supply);
    event TeamSet(INewToken.TeamParams tparams);
    event LaunchCostChanged(uint256 ethCost, uint256 deployyyyerCost);
    event PromoCostChanged(uint256 ethCost, uint256 deployyyyerCost);
    event MinLiquidityChanged(uint256 minLiq);
    event IncreasedLimits(uint256 maxWallet, uint256 maxTx);

    struct ConstructorArgs {
        bool createToken;
        address taxwallet;
        address stakingFacet;
        address presaleFacet;
        address tokenFacet;
        address v2router;
        address team1;
        address team2;
        address team3;
        address marketing;
        address treasury;
        uint256 ethCost;
        uint256 deployyyyerCost;
        uint256 promoCostEth;
        uint256 promoCostDeployyyyer;
        uint256 minLiq;
        address uniswapRouter;
        address sushiswapRouter;
        address pancakeswapRouter;

    }

    /// @notice Constructor of Diamond Proxy for Deployyyyer
    constructor(IDiamondCut.FacetCut[] memory _diamondCut, ConstructorArgs memory _args) {
        if(_args.createToken) {
            emit FactoryBuilt("Deployyyyer", "DEPLOY", 1000000000);
        } else {
            emit FactoryBuilt("Deployyyyer", "DEPLOY", 0);
        }
        LibDiamond.diamondCut(_diamondCut, address(0), new bytes(0));
        //console.log(msg.sender);
        LibDiamond.setContractOwner(msg.sender);

        LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();

        // adding ERC165 data
        ds.supportedInterfaces[type(IERC165).interfaceId] = true;
        //ds.supportedInterfaces[type(IDiamondCut).interfaceId] = true;
        ds.supportedInterfaces[type(IDiamondLoupe).interfaceId] = true;
        ds.supportedInterfaces[type(IERC173).interfaceId] = true;
        ds.supportedInterfaces[type(IERC20).interfaceId] = true;

        //init appStorage 
        s.stakingFacet = _args.stakingFacet;
        s.presaleFacet = _args.presaleFacet;
        //s.deployyyyer = address(this);

        s.isParent = true;
        s.decimals = 18;
        s.ethCost = _args.ethCost; //2 * 10**s.decimals / 10; //0.2eth
        s.deployyyyerCost = _args.deployyyyerCost; //100000 * 10**s.decimals;
        s.promoCostEth = _args.promoCostEth; //5 * 10**s.decimals / 100; //0.05 eth per hour
        s.promoCostDeployyyyer = _args.promoCostDeployyyyer; //50000 * 10**s.decimals;
        s.minLiq = _args.minLiq; //1 * 10**s.decimals / 10; //0.1eth min
        //s.bridge = address(0);
        emit LaunchCostChanged(s.ethCost, s.deployyyyerCost);
        emit PromoCostChanged(s.promoCostEth, s.promoCostDeployyyyer);
        emit MinLiquidityChanged(s.minLiq);

        s.isFreeTier = false;

        s.taxWallet = payable(_args.taxwallet);
        s.deployyyyerCa = payable(address(this));
        s.tokenFacet = _args.tokenFacet;
        
        s.validRouters[_args.v2router] = true;
        s.validRouters[_args.uniswapRouter] = true;
        s.validRouters[_args.sushiswapRouter] = true;
        s.validRouters[_args.pancakeswapRouter] = true;
        
        if(_args.createToken) {
            
            s.maxBuyTax = 20;
            s.minBuyTax = 0;
            s.taxBuy = s.maxBuyTax; //20%

            
            s.maxSellTax = 20;
            s.minSellTax = 0;
            s.taxSell = s.maxSellTax; //20%
            
            s.initTaxType = 1;
            s.initInterval = 0;
            s.countInterval = 20;

            // Reduction Rules
            s.buyCount = 0; 
            s.name = "Deployyyyer";
            s.symbol = "DEPLOY";
            s.tTotal = 1000000000 * 10**s.decimals; //1b tokens in wei

            // Contract Swap Rules            
            s.taxSwapThreshold = s.tTotal * 1 / 1000; //0.1%
            s.maxTaxSwap = s.tTotal * 1 / 100; //1%
            s.preventSwap = 20;

            s.maxWallet = s.tTotal * 2 / 100;  //2% 
            s.maxTx = s.tTotal * 2 / 100;  //2% 
            s.walletLimited = true;
            s.balances[address(this)] = s.tTotal;

            emit IncreasedLimits(2, 2);

            emit Transfer(address(0), address(this), s.tTotal);

            s.cliffPeriod = 0;
            s.vestingPeriod = 0;

            s.teamShare[_args.team1] = s.tTotal * 4 / 100;
            s.teamShare[_args.team2] = s.tTotal * 3 / 100;
            s.teamShare[_args.team3] = s.tTotal * 3 / 100;
            s.teamShare[_args.marketing] = s.tTotal * 5 / 100; 
            s.teamShare[_args.treasury] = s.tTotal * 5 / 100; 
            s.isExTxLimit[_args.marketing] = true;
            s.isExWaLimit[_args.marketing] = true;
            s.isExTxLimit[_args.treasury] = true;
            s.isExWaLimit[_args.treasury] = true;
            s.isExTxLimit[_args.team1] = true;
            s.isExWaLimit[_args.team1] = true;
            s.isExTxLimit[_args.team2] = true;
            s.isExWaLimit[_args.team2] = true;
            s.isExTxLimit[_args.team3] = true;
            s.isExWaLimit[_args.team3] = true;

            emit TeamSet(INewToken.TeamParams(_args.team1, 4, s.cliffPeriod, s.vestingPeriod, true)); 
            emit TeamSet(INewToken.TeamParams(_args.team2, 3, s.cliffPeriod, s.vestingPeriod, true)); 
            emit TeamSet(INewToken.TeamParams(_args.team3, 3, s.cliffPeriod, s.vestingPeriod, true)); 
            emit TeamSet(INewToken.TeamParams(_args.marketing, 5, s.cliffPeriod, s.vestingPeriod, true));
            emit TeamSet(INewToken.TeamParams(_args.treasury, 5, s.cliffPeriod, s.vestingPeriod, true)); 

            s.teamBalance = s.tTotal * 20 / 100;
            s.uniswapV2Router = IUniswapV2Router02(_args.v2router);
            s.allowances[address(this)][address(s.uniswapV2Router)] = s.tTotal;
            //emit Approval(address(this), address(s.uniswapV2Router), s.tTotal);
            s.launchedTokens[address(this)] = msg.sender; 
        }
        

    }   

    /// @notice fallback
    // 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), "S1");
        // 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())
                }
        }
    }

    /// @notice receive
    receive() external payable {}
}

File 2 of 10 : IDiamondCut.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

/******************************************************************************\
* 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);
}

File 3 of 10 : IDiamondLoupe.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/

// A loupe is a small magnifying glass used to look at diamonds.
// These functions look at diamonds
interface IDiamondLoupe {
    /// These functions are expected to be called frequently
    /// by tools.

    struct Facet {
        address facetAddress;
        bytes4[] functionSelectors;
    }

    /// @notice Gets all facet addresses and their four byte function selectors.
    /// @return facets_ Facet
    function facets() external view returns (Facet[] memory facets_);

    /// @notice Gets all the function selectors supported by a specific facet.
    /// @param _facet The facet address.
    /// @return facetFunctionSelectors_
    function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_);

    /// @notice Get all the facet addresses used by a diamond.
    /// @return facetAddresses_
    function facetAddresses() external view returns (address[] memory facetAddresses_);

    /// @notice Gets the facet that supports the given selector.
    /// @dev If facet is not found return address(0).
    /// @param _functionSelector The function selector.
    /// @return facetAddress_ The facet address.
    function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_);
}

File 4 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

interface IERC165 {
    /// @notice Query if a contract implements an interface
    /// @param interfaceId The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    ///  uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    ///  `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 10 : IERC173.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

/// @title ERC-173 Contract Ownership Standard
///  Note: the ERC-165 identifier for this interface is 0x7f5828d0
/* is ERC165 */
interface IERC173 {
    /// @dev This emits when ownership of a contract changes.
    //event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /// @notice Get the address of the owner
    /// @return owner_ The address of the owner.
    function owner() external view returns (address owner_);

    /// @notice Set the address of the new owner of the contract
    /// @dev Set _newOwner to address(0) to renounce any ownership.
    /// @param _newOwner The address of the new owner of the contract
    function transferOwnership(address _newOwner) external;
}

File 6 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;


interface IERC20 {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address _owner) external view returns (uint256 balance);

    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) external returns (bool success);

    function transfer(address _to, uint256 _value) external returns (bool success);

    function approve(address _spender, uint256 _value) external returns (bool success);

    function allowance(address _owner, address _spender) external view returns (uint256 remaining);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 10 : INewToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
import { IPresale} from "./IPresale.sol";

interface INewToken {
    struct InitParams {
        address owner;
        address taxWallet;
        address stakingFacet;
        address v2router;
        bool isFreeTier;
        uint256 minLiq; 
        uint256 supply;
        uint256 initTaxType; //0-time,1-buyCount,2-hybrid
        uint256 initInterval; //seconds 0-1 hour(if 1m: 1m, 3m, 6m, 10m)
        uint256 countInterval; //0-100 
        uint256  maxBuyTax; //40%
        uint256  minBuyTax; //0
        uint256  maxSellTax; //40%
        uint256  minSellTax; //0
        uint256  lpTax; //0-90 of buy or sell tax
        uint256 maxWallet;
        uint256 maxTx;
        uint256 preventSwap;
        uint256 maxSwap;
        uint256 taxSwapThreshold;
        string  name;
        string  symbol;
    }
    
    struct TeamParams {
        address team1;
        uint256 team1p; 
        uint256 cliffPeriod; 
        uint256 vestingPeriod;
        bool isAdd;
    }

	function rescueERC20(address _address) external;
	function increaseLimits(uint256 maxwallet, uint256 maxtx) external;
	function startTrading(uint256 lockPeriod, bool shouldBurn, address router) external;
    //require trading and presale not started
    function addPresale(address presale, uint256 percent, IPresale.PresaleParams memory newdetails) external;
    //require caller to be presale address
    function finPresale() external;
    function refPresale() external;
    //requires presale not started and trading not started
    function addTeam(TeamParams memory params) external;
    //what if we remove team out from init?
}

interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);

}

interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}

File 8 of 10 : IPresale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

interface IPresale {
    struct PresaleParams {
            address owner;
            address token;
            uint256 softcap;
            uint256 hardcap;
            uint256 startTs;
            uint256 finishTs;
            uint256 duration;
            uint256 liqPercent;
            uint256 cliffPeriod;
            uint256 vestingPeriod;
            uint256 status;
            uint256 sold;
            uint256 maxEth;
            uint256 maxBag;
            uint256 fee;
    }

    function transferOwnership(address _newOwner) external;
    function owner() external view returns (address);
    function rescueERC20(address _address) external;
    function setupPresale(PresaleParams memory params) external;
    function buyTokens(uint256 _amount) external payable;
    //should we offer or force token vesting??
    function claimTokens() external;
    function getRefund() external;
    function getPresaleDetails() external view returns(PresaleParams memory); 
    function finishPresale() external; 
    function claimEth() external;
    function getClaimableTokens(address user) external view returns(uint256,uint256,uint256,uint256);
    function refundPresale() external;
}

File 9 of 10 : LibAppStorage.sol
// SPDX-License-Identifier: MIT
/*********************************************************************************************\
* Deployyyyer: https://deployyyyer.io
* Twitter: https://x.com/deployyyyer
* Telegram: https://t.me/Deployyyyer
/*********************************************************************************************/
pragma solidity ^0.8.23;
import {LibDiamond} from "./LibDiamond.sol";
//import {LibMeta} from "./LibMeta.sol";
import {IUniswapV2Factory, IUniswapV2Router02} from "../interfaces/INewToken.sol";



struct AppStorage {
    mapping(address => bool) validRouters; //parentOnly
    mapping(address => bool) allowedTokens; //parentOnly
    //this should be bool too
    mapping(address => address) launchedTokens; //parentOnly
    mapping(address => address) launchedPresale; //parentOnly
    //cost of launch, cost of promo, cost of setting socials is 2xpromoCostEth
    uint256 ethCost; //parentOnly
    uint256 deployyyyerCost; //parentOnly
    uint256 promoCostEth; //parentOnly
    uint256 promoCostDeployyyyer; //parentOnly
    address bridge; //parentOnly

    //mapping of user address to score
    mapping(address => uint256) myScore; //parentOnly

    //+1 for launch, +5 for liquidity add, +50 for lp burn, -100 for lp retrieve
    uint256 cScore; //cScore is transferred with ownership, cScore is deducted on lp retrieve

    
    //address deployyyyer;
    bool isParent;
    uint256 minLiq;
    //this can be a map with share and clain in a structure
    mapping(address => uint256) teamShare;
    mapping(address => uint256) teamClaim;
    
    uint256 teamBalance;

    uint256 cliffPeriod; //min 30days
    uint256 vestingPeriod;//min 1day max 10000 days avg 30days.


    mapping(address => bool)  isExTxLimit; //is excluded from transaction limit
    mapping(address => bool)  isExWaLimit; //is excluded from wallet limit
    mapping (address => uint256)  balances; //ERC20 balance
    mapping (address => mapping (address => uint256))  allowances; //ERC20 balance

    address payable taxWallet; //tax wallet for the token
    address payable deployyyyerCa; //deployyyyer contract address
    address payable stakingContract; //address of staking contract for the token
    address stakingFacet; //facet address, used to launch a staking pool
    address presaleFacet; //facet address, used to launch a presale
    address tokenFacet; //facet address, used to launch a ERC20 token
    uint256 stakingShare; //share of tax sent to its staking pool
    
    
    // Reduction Rules
    uint256  buyCount; 

    uint256 initTaxType; //0-time,1-buyCount,2-hybrid,3-none
    //interval*1, lastIntEnd+(interval*2), lastIntEnd+(interval*3)
    uint256 initInterval; //seconds 0-1 hour(if 1m: 1m, 3m, 6m, 10m)
    uint256 countInterval; //0-100 

    //current taxes
    uint256  taxBuy; 
    uint256  maxBuyTax; //40%
    uint256  minBuyTax; //0

    uint256  taxSell; 
    uint256  maxSellTax; //40%
    uint256  minSellTax; //0
    
    


    uint256  tradingOpened;

    // Token Information
    uint8   decimals;
    uint256   tTotal;
    string   name;
    string   symbol;

    // Contract Swap Rules 
    uint256 preventSwap; //50            
    uint256  taxSwapThreshold; //0.1%
    uint256  maxTaxSwap; //1%
    uint256  maxWallet; //1%
    uint256  maxTx;

    IUniswapV2Router02  uniswapV2Router;
    address  uniswapV2Pair;
    
    bool  tradingOpen; //true if liquidity pool is created
    bool  inSwap;
    bool  walletLimited;
    bool isFreeTier;
    bool isBurnt;
    bool isRetrieved;
    uint256 lockPeriod;
    
    //buy back tax calculations
    uint256 lpTax; //0-50 percent of tax amount 
    uint256 halfLp;
    uint256 lastSwap;

    uint256 presaleTs;
    uint256 presaleSt;
    address presale;

}

/*
library LibAppStorage {
    function diamondStorage() internal pure returns (AppStorage storage ds) {
        assembly {
            ds.slot := 0
        }
    }

    function abs(int256 x) internal pure returns (uint256) {
        return uint256(x >= 0 ? x : -x);
    }
}
*/


contract Modifiers {
    AppStorage internal s;

    modifier onlyOwner() {
        LibDiamond.enforceIsContractOwner();
        _;
    }  
    
}

File 10 of 10 : LibDiamond.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

/*********************************************************************************************\
* Authors: 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, "l0");
    }

    //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.
    // also removed action on _calldata and _init is always address(0)
    // maintained same old signature
    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);
        require(_init == address(0), "l1");
        require(_calldata.length == 0, "l2");
    }

    //supports only add, maintaining lib fn name
    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, "l3");
        if (_action == IDiamondCut.FacetCutAction.Add) {
            enforceHasContractCode(_newFacetAddress, "l4");
            for (uint256 selectorIndex; selectorIndex < _selectors.length; selectorIndex++) {
                bytes4 selector = _selectors[selectorIndex];
                bytes32 oldFacet = ds.facets[selector];
                require(address(bytes20(oldFacet)) == address(0), "l5");
                // 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 {
            revert("l6");
        }
        return (_selectorCount, _selectorSlot);
    }

    function enforceHasContractCode(address _contract, string memory _errorMessage) internal view {
        uint256 contractSize;
        assembly {
            contractSize := extcodesize(_contract)
        }
        require(contractSize > 0, _errorMessage);
    }
}

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

Contract ABI

API
[{"inputs":[{"components":[{"internalType":"address","name":"facetAddress","type":"address"},{"internalType":"enum IDiamondCut.FacetCutAction","name":"action","type":"uint8"},{"internalType":"bytes4[]","name":"functionSelectors","type":"bytes4[]"}],"internalType":"struct IDiamondCut.FacetCut[]","name":"_diamondCut","type":"tuple[]"},{"components":[{"internalType":"bool","name":"createToken","type":"bool"},{"internalType":"address","name":"taxwallet","type":"address"},{"internalType":"address","name":"stakingFacet","type":"address"},{"internalType":"address","name":"presaleFacet","type":"address"},{"internalType":"address","name":"tokenFacet","type":"address"},{"internalType":"address","name":"v2router","type":"address"},{"internalType":"address","name":"team1","type":"address"},{"internalType":"address","name":"team2","type":"address"},{"internalType":"address","name":"team3","type":"address"},{"internalType":"address","name":"marketing","type":"address"},{"internalType":"address","name":"treasury","type":"address"},{"internalType":"uint256","name":"ethCost","type":"uint256"},{"internalType":"uint256","name":"deployyyyerCost","type":"uint256"},{"internalType":"uint256","name":"promoCostEth","type":"uint256"},{"internalType":"uint256","name":"promoCostDeployyyyer","type":"uint256"},{"internalType":"uint256","name":"minLiq","type":"uint256"},{"internalType":"address","name":"uniswapRouter","type":"address"},{"internalType":"address","name":"sushiswapRouter","type":"address"},{"internalType":"address","name":"pancakeswapRouter","type":"address"}],"internalType":"struct Deployyyyer.ConstructorArgs","name":"_args","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"FactoryBuilt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTx","type":"uint256"}],"name":"IncreasedLimits","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethCost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deployyyyerCost","type":"uint256"}],"name":"LaunchCostChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minLiq","type":"uint256"}],"name":"MinLiquidityChanged","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":"uint256","name":"ethCost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deployyyyerCost","type":"uint256"}],"name":"PromoCostChanged","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"team1","type":"address"},{"internalType":"uint256","name":"team1p","type":"uint256"},{"internalType":"uint256","name":"cliffPeriod","type":"uint256"},{"internalType":"uint256","name":"vestingPeriod","type":"uint256"},{"internalType":"bool","name":"isAdd","type":"bool"}],"indexed":false,"internalType":"struct INewToken.TeamParams","name":"tparams","type":"tuple"}],"name":"TeamSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x608060405236600a57005b600080356001600160e01b03191681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819060601c8060805760405162461bcd60e51b8152602060048201526002602482015261533160f01b604482015260640160405180910390fd5b3660008037600080366000845af43d6000803e808015609e573d6000f35b3d6000fdfea2646970667358221220d6541da1f5ef8c7d4d37ac24b80845ede14bee791e2aa1cf3848afcacc0fac2964736f6c63430008170033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading
[ 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.