This package has been deprecated

Author message:

please use @perp/curie-deployments instead

@perp/lushan

0.12.7 • Public • Published

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

  1. Deploy contracts
export ARBITRUM_RINKEBY_WEB3_ENDPOINT="YOUR_RPC_ENDPOINT"
export ARBITRUM_RINKEBY_DEPLOYER_MNEMONIC="YOUR_MNEMONIC"

# deploy and WILL NOT reuse any existing contracts
npm run clean-deploy:arbitrumRinkeby
# deploy and WILL reuse existing contracts
npm run deploy:arbitrumRinkeby

# only run the specific deployment script
npm run deploy:arbitrumRinkeby -- --tags ClearingHouse
npm run deploy:arbitrumRinkeby -- --tags Pool-vETHvUSD
  1. Update CHANGELOG.md

  2. Update version of package.json and package-lock.json

  3. Verify contracts on Tenderly

    • apply access_key from Tenderly settings
      • the access token on the Tenderly dashboard, under Settings -> Authorization.
    • create a config.yaml file at $HOME/.tenderly/config.yaml and add an access_key field to it:
      access_key: super_secret_access_key
    • run export RINKEBY_WEB3_ENDPOINT=YOUR_RPC_ENDPOINT
    • run npm run verify-tenderly:rinkeby
  4. Verify what's included in the packed npm package

npm pack
  1. Publish npm package
# push tag to trigger "Publish NPM package" workflow
git tag vX.X.X
git push origin --tags

# create GitHub release
gh release create vX.X.X -t "vX.X.X" -F CHANGELOG.md

Dependencies (0)

    Dev Dependencies (51)

    Package Sidebar

    Install

    npm i @perp/lushan

    Weekly Downloads

    0

    Version

    0.12.7

    License

    GPL-2.0-or-later

    Unpacked Size

    802 kB

    Total Files

    63

    Last publish

    Collaborators

    • detoo
    • kimiwu
    • miyachen
    • perp_dev
    • vinta
    • wraecca
    • yurenju