@gothdex/exchange-contracts v0.0.3
Building the Project
This project was tested with npm v16.13.1 installed into the user home dir.
You will need the npx and node tools to run the hardhart scripts and RPC server.
To build the project, use the following command.
npm installThis should install all project dependencies into the node_modules directory.
Commands
The following will compile the GOTH token contract.
npx hardhat compileThis command will execute the script to deploy the contract.
npx hardhat run ./scripts/deploy-token.jsYou can run the tests as follows.
npx hardhat testThe above command can also be used to deploy to a specific network.
npx hardhat run ./scripts/deploy-token.js --network localhostThe local RPC server can be run like this.
npx hardhat nodeThis will run the local test net at the address: http://localhost:8545
Publishing the package to NPM
The project is managed by the gothdex organziation on npm.
To publish, first login to the account in the organization using:
npm loginFirst, the contracts need to be generated using hardhat.
npx hardhat compileThen publish the package using the following command.
npm publish --access publicIf the package has already been published under the existing version number, then this will fail, and the version should be updated.
The versions should correspond to milestones and releases in the project.