Synthetixio / staking

A dAPP for minting, burning, and earning on the Synthetix Protocol.
http://staking.synthetix.io/
MIT License
81 stars 75 forks source link

Deploy on local node #1191

Open SyedImam1998 opened 2 years ago

SyedImam1998 commented 2 years ago

Hi team, Could you please help me, how can I deploy this dapp on my local node, I have tried it but it is only working on mainnet and kovan. Could you please help me here? I just wanted to learn how synthetix dapp work.....

noisekit commented 2 years ago

With this PR https://github.com/Synthetixio/staking/pull/1160/files we have removed all the networks except mainnet and kovan (+optimism). If you want to run it locally - add local network there to the list (to avoid cleaning it from contract definitions). I haven't tested dapp with local network, so it is not guaranteed this will work.

SyedImam1998 commented 2 years ago

i have add local here const networks = ['kovan', 'kovan-ovm', 'mainnet', 'mainnet-ovm', 'local']; in next.config.js file

but i am getting this error Error: Cannot find module 'synthetix/publish/deployed/local/deployment.json' Require stack:

can you please guide what else can i do here.?

noisekit commented 2 years ago

1.Running Dapp on Windows is not supported (but you may be lucky).

  1. I suggest commenting out whole contract minification bit in next.config instead. That would include full synthetix bundle with all supported networks.
SyedImam1998 commented 2 years ago

Sorry I didn't get your 2nd point could you please explain it?

noisekit commented 2 years ago

Comment line 41 https://github.com/Synthetixio/staking/blob/2bedb58f0c2934c0db96b18cf0c08b0d4d5464df/next.config.js#L41

SyedImam1998 commented 2 years ago

Dapp is requesting me to change to mainnet. it is not working with ganache. image

noisekit commented 2 years ago

I haven't tested dapp with local network, so it is not guaranteed this will work.

kovan or kovan optimism is the way then.

SyedImam1998 commented 2 years ago

getting faucet for them is lot difficult that is the reason why i trying to deploy it on local ....