ArkProjectNFTs / ark-project

ArkProject is a liquidity layer for digital assets, uniting markets, empowering creators, and bridging the gap to mass adoption. Built on top of Starknet, ArkProject is designed to provide a fully decentralized and trustless orderbook on-chain.
https://arkproject.dev
Apache License 2.0
24 stars 8 forks source link

Fix deployer cli cmd for :all cmd #243

Open kwiss opened 5 months ago

kwiss commented 5 months ago

Is this feature related to a problem? Please describe.

Current implementation of the deployer cmd: deploy:starknet:all is removing all the content of the contracts.json file because of:


(async () => {
  await fs.writeFile(
    getContractsFilePath(),
    JSON.stringify({
      goerli: {},
      sepolia: {},
      mainnet: {},
      dev: {}
    })
  );
})();
```

**Describe the solution you'd like**

Change the way to update the file and instead of cleaning completly the file let's just remove the network affected by the cmd
(dev, goerli, mainnet)

**Alternative solutions**

Having separate files for each network contracts could be another solution
vibenedict commented 2 months ago

Can I hop on this? @kwiss

vibenedict commented 2 months ago

Hi @kwiss