blockful-io / swaplace-contracts

Swaplace is an open-source, ownerless and feeless token swap protocol
https://app.swaplace.xyz/
MIT License
33 stars 33 forks source link

refactor: repo scripts section #197

Closed 0xneves closed 5 months ago

0xneves commented 6 months ago

Feature Request

Describe the Feature Request

We want to make it easy for the command line to deploy the contracts in the repo to facilitate activities. This is part of a usability upgrade when running the swaplace-subgraph locally.

Describe Preferred Solution

/* Remove */
 "testnet": "npx hardhat test --network $1",

/* Refactor */
 "deploy": "npx hardhat run scripts/deploy.ts --network $1",

 ---

 "deploy:swaplace": "npx hardhat run scripts/deploy.ts --network $1",
 "deploy:mocks": "npx hardhat run scripts/deployMocks.ts --network $1",

Related Code

package.json

blackbeard002 commented 5 months ago

Hey @0xneves made a PR that closes this #199

0xneves commented 5 months ago

Hey @0xneves made a PR that closes this #199

I asked for a small refactor, take a look ;D