lushan
Local development and testing
Requirements
You should have Node 12 installed. Use nvm to install it.
Get started
Clone this repository, install NodeJS dependencies, and build the source code:
git clone git@github.com:perpetual-protocol/perp-lushan.git
npm i
npm run build
Since there are some runtime environment dependencies, if the installation failed on your machine, please try a vanilla install instead:
npm run clean
rm -rf node_modules/
rm package-lock.json
npm install
npm run build
Testing
To run all the test cases:
npm run test
Deployment
export ARBITRUM_RINKEBY_WEB3_ENDPOINT="YOUR_RPC_ENDPOINT"
export ARBITRUM_RINKEBY_DEPLOYER_MNEMONIC="YOUR_MNEMONIC"
npm run clean-deploy:arbitrumRinkeby
npm run deploy:arbitrumRinkeby
npm run deploy:arbitrumRinkeby -- --tags ClearingHouse
npm run deploy:arbitrumRinkeby -- --tags Pool-vETHvUSD
-
Update CHANGELOG.md
-
Update version
of package.json
and package-lock.json
-
Verify contracts on Tenderly
-
Verify what's included in the packed npm package
npm pack
git tag vX.X.X
git push origin --tags
gh release create vX.X.X -t "vX.X.X" -F CHANGELOG.md