Coder Social home page Coder Social logo

0xpolygon / dapp-launchpad Goto Github PK

View Code? Open in Web Editor NEW
15.0 7.0 13.0 1.34 MB

dApp Launchpad is a CLI tool to quickly initialise a fully-integrated EVM-compatible dApp, create a development environment, and deploy everything to production.

Home Page: https://docs.polygon.technology/tools/dApp-development/launchpad/intro/

License: MIT License

TypeScript 97.69% JavaScript 2.31%
dapp-example web3-dapp web3-scaffold

dapp-launchpad's People

Contributors

ankitboghra avatar captain-woof avatar finessevanes avatar mt-polygon-technology avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dapp-launchpad's Issues

Incorrect Paths in updated dapp-launchpad.config.json after init

After we initialize a new project using dapp-launchpad init [project name] all paths mentioned in generated dapp-launchpad.config.json are incorrect and miss the project name

This generates following error
error

This is my generated dapp-launchpad.config.json
config

Issue on smart contract deployment with constructor args to local chain

Hello,
I just started using the fantastic dApp-launchpad tool to develop a dapp, however when I add my smart contract to the smart contracts folder, and i run the dev environment, my contract doesn't get deployed. but the "wall" contract used as sample gets deployed correctly.
I tried to deploy the contracts using the hardhat cli (npx hardhat run script ./script/deploy...) and it worked just fine (which means the error is not related to the contract itself), but when I try to run dev only the "Wall" contract gets deployed and added to the constants/smart-contracts-development.json file

this is my deploy_localhost.js

const { ethers } = require("hardhat");

async function main() {
  try {

    // Deploy Wall contract
    const WallFactory = await ethers.getContractFactory("Wall");
    const wallContract = await WallFactory.deploy();
    await wallContract.waitForDeployment();
    console.log("Wall deployed to:", wallContract.target);

    // Deploy Nftcert contract
    const NftcertFactory = await ethers.getContractFactory("Nftcert");
    const NftcertContract = await NftcertFactory.deploy("NFTCertificate", "NFTC");
    await NftcertContract.waitForDeployment();
    console.log("Nftcert deployed to:", NftcertContract.target);

  } catch (error) {
    console.error("Deployment failed:", error);
  }
}
main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});

Output
[19:06] > Deploying smart contracts on local chain
[19:06] โœ” Contract deployed: WALL -> 0x5fbdb2315678afecb367f032d93f642f64180aa3
[19:06] > Starting frontend dev server...

Is this problem related to some config that I don't know or is it an issue ?

Edit :
I noticed that contracts with constructor args doesn't get deployed by adding a constructor with 1arg to the Wall contract, and it didn't get deployed. So the scope of the problem is contracts with constructor arguments.

Deprecating support for Goerli, Mumbai and Blueberry zkEVM

With the sunsetting of Goerli and eventually Mumbai and Blueberry testnets, new config will support Sepolia, Amoy and Cardona testnets respectively.
Configs to deploy on the respective rpcs and fork the respective blockchain networks should be supported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.