Skip to content

ClipFinance/strategy-router

Repository files navigation


Development

Requirements

  • Node version 14+
  • Npm version 6+

Clone this repo, rename .env.example file to .env and fill the variables inside.

For connecting to binance smart chain node, paste your RPC node url and paste it to .env BNB_URL value. Use on of the public nodes. You can find them here https://docs.bscscan.com/misc-tools-and-utilities/public-rpc-nodes
For example use this in BNB_URL=https://bsc-dataseed3.ninicoin.io/

Install dependencies via npm npm i.
To run all the tests npx hardhat test.
To run specific test file npx hardhat test test/router.js.

Deploy to get ABI Go to directory and launch:
solcjs --abi --include-path node_modules/ --base-path . contracts/StrategyRouter.sol

To upgrade StrategyRouter.sol run on BSC run:

STRATEGY_ROUTER_PROXY_ADDRESS=<proxy_address> STRATEGY_ROUTER_LIB_ADDRESS=<lib_address> npx hardhat run scripts/upgradeStrategyRouter.js --network bnb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published