Skip to content

element-market/launchpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 

Repository files navigation

Launchpad

Contract Address

Network Contract Address
Ethereum Mainnet 0x4cc4752155877F4333f25bB9A6F8880567ee1231
Ethereum Goerli 0x8873E78A66D906959a49527868010ee7ffc01d12
Bsc Mainnet 0xDC21dE4BFd34d4b308419c27D779E331D15A7064
Bsc Testnet 0xeB6d3020456181cfC5383688f3E94166d4D80F84
ZkSync Era Mainnet 0x0F739c53D910C3eF246f670C3dbE7c8d8bdFD72b
ZkSync Era Testnet 0x29BDefA9a2f636FE54607904235FfEeCF485D45F
Arbitrum One 0x20Baa25Bbe6b3216148Bb87ED0e1022CC632a80E
Arbitrum Goerli 0xac7321CBD3742B3eFC736d077B136DA769463B9D
Polygon Mainnet 0xf48EdDEe2273b2af0718EE781eb1E53a4bFebEf7
Base Mainnet 0x26Df6Fea89f1C9e4A3A2bfc2128542B7a05FbA8E
Base Testnet 0xa803a0a2aE6b53bB03713B4ba60b760aA4718825
OpBNB Mainnet 0x734026dE65E9A8dd0141992dBB60153Df5DF2b57
Scroll 0xBF80D65d44A03539B57d36c6763C97eC224Ad4ac
Manta Pacific 0x26Df6Fea89f1C9e4A3A2bfc2128542B7a05FbA8E
Mantle 0xec9Acf4Ca6dad2720be6d0b5bCb6DDF56728Bb57
Optimism Mainnet 0xF9c0EE3059d2227A9bf6d966Ce833411033797C0
ZKFair Mainnet 0xd7b63951978160ACD9f38C99edb67Ed5CE2eaEa1
BOB 0xE7985a2E61d82519eF6f2b7D9f0BF17c46e708A1

Api Docs

You need to implement one of the following mint methods and add the Element launchpad contract to the PartnerList[]. This will allow the element launchpad contract to mint ERC721 NFTs to the user's address.

Note that the mint method name can be changed to another one according to your requirements, as long as the parameter list is consistent.

/// @dev Mint an erc721 to the user address.
/// @param to The user address.
/// @Note The method name can be changed to another one, but the parameters cannot be modified.
function mintMethod1(address to) external {
    // Check if the msg.sender is in the partner list.
    require(_inPartnerList[msg.sender], "minter not allowed");
    
    // Your other codes.
    // ...
    
    // Mint erc721.
    _mint(to, _getTokenId());
}

/// @dev Mint erc721s to the user address.
/// @param to The user address.
/// @param amount The quantity purchased by the user.
/// @Note The method name can be changed to another one, but the parameters cannot be modified.
function mintMethod2(address to, uint256 amount) external {
    // Check if the msg.sender is in the partner list.
    require(_inPartnerList[msg.sender], "minter not allowed");

    // Your other codes.
    // ...

    // Mint erc721s.
    for (uint256 i; i < amount; i++) {
        _mint(to, _getTokenId());
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published