Build Your Own DAO - Helping Each Other

received these errors after reinstalling it

ERRORS

npm WARN config global --global, --local are deprecated. Use --location=global instead.

npm WARN deprecated [email protected]: ganache-core is now ganache; visit https://trfl.io/g7 for details

npm WARN deprecated [email protected]: ganache-core is now ganache; visit https://trfl.io/g7 for details

npm WARN deprecated [email protected]: testrpc has been renamed to ganache-cli, please use this package from now on.

npm WARN deprecated [email protected]: this library is no longer supported

npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated @ensdomains/[email protected]: Please use @ensdomains/ens-contracts

npm WARN deprecated @ensdomains/[email protected]: Please use @ensdomains/ens-contracts

added 1114 packages, and audited 1419 packages in 1m

49 vulnerabilities (9 moderate, 37 high, 3 critical)

maybe this video helps you:

thank you, took a few steps further, clean and compile worked, though the mumbai network is still not found. Is it possible that its down and i should try ropsten, or maybe i have to be under a paid plan to use these nodes ?

Error HH100: Network mumbai doesn’t exist

The outline is also not showing unknown anymore, excellent

Mumbai network should work, you can also try with a public RCP url for Mumbai network

https://docs.polygon.technology/docs/develop/network-details/network/

https://rpc-mumbai.matic.today

Checked what it deployed, it deployed a greeting contract, its not finding this:

module.exports = {
solidity: ‘0.8.7’,
networks: {
mumbai: {
url: process.env.POLYGON_MUMBAI,
accounts: [process.env.PRIVATE_KEY],
},
},
etherscan: {
apiKey: process.env.API_KEY,
}
};

Its honestly a mystery to me, how i repeated everything for the 6th time, identical to the video and i get a different result still.

It deployed a contract and not the right one?

it compiled a contract, but i had renamed everything from Greeter to Dao and under artifacts its showing greeter files. When i tried deploying it says module not found.

maybe try to create a separete dao contract, you don’t have to necessarily follow the exact steps as in that tutorial.

you can also try to delete the artefacts and build again

I am very new at this, this is my first time using solidity, im sure that i have installed something wrong or the issue i am having is very simple and basic. I noticed that for everyone on youtube installing hardhat it shows the same exact number and type of vulnerabilities and for me its showing different

49 vulnerabilities (9 moderate, 37 high, 3 critical)

Two of which seem very off

npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

Im just shooting everything i can think of to help identify the source of my problem, of course, besides me being a newbie at this :blush:

it may be easier to use remix if you are new to using hardhat

will do whatever it takes, when i pick something up i dont give up until its done, so you might hear from me quiet a bit until then :wink:

sorry to keep bothering you guys. I have started all over on a different computer, just want to make sure i dont miss anything:

I installed, VSC, Node.js version 16.15.1, NPM version 8.12.2 and of course it came with powershell.

Are there any extensions needed to build DAO and maybe you can help me with what else i am missing before beginning?

You need MetaMask installed in browser as an extension

sorry, forgot to mention, have metamask already and mumbai network with tokens in it. As far as anything else like extensions, i have none so far, do i need react and solidity extensions?

i have seen on hardhat tutorial site that Node.js >=12.0 is required am i ok with the version i have, that is the latest one i found 8.12.2

I don’t know what you mean with react and solidity extensions, I don’t know about the existence of such extensions

i seen a moralis tutorial for beginners and 3 extensions were recommended to install which is what i did, maybe that was a mistake. For DAO nothing is needed apart from node.js and vsc? Simply following the video should do it?

it depends on what you use (you can do it without any extensions, even without visual studio code), you are referring to extensions for visual studio code or something else?

yes, i had installed solidity, react and live server extensions. Not sure if they are the reason module.export part is not being detected. That is the only problem i have, everything entered under module.export is undefined even though i wrote it identically to the example in the video

you should be able to run hardhat from command line directly, without using visual studio, visual studio plugins shouldn’t be a problem