JSPM

  • Created
  • Published
  • Downloads 2304
  • Score
    100M100P100Q120141F

Venus Protocol contracts to manage the income generated by the protocol

Package Exports

  • @venusprotocol/protocol-reserve/deployments/bscmainnet_addresses.json
  • @venusprotocol/protocol-reserve/deployments/bsctestnet_addresses.json
  • @venusprotocol/protocol-reserve/deployments/ethereum_addresses.json
  • @venusprotocol/protocol-reserve/deployments/sepolia_addresses.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@venusprotocol/protocol-reserve) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Protocol Reserve

Prerequisites

Installing


npm install

Run Tests


npx hardhat test

Hardhat Commands


npx hardhat accounts

npx hardhat compile

npx hardhat clean

npx hardhat test

npx hardhat node

npx hardhat help

REPORT_GAS=true npx hardhat test

npx hardhat coverage

TS_NODE_FILES=true npx ts-node scripts/deploy.ts

npx eslint '**/*.{js,ts}'

npx eslint '**/*.{js,ts}' --fix

npx prettier '**/*.{json,sol,md}' --check

npx prettier '**/*.{json,sol,md}' --write

npx solhint 'contracts/**/*.sol'

npx solhint 'contracts/**/*.sol' --fix



MNEMONIC="<>" BSC_API_KEY="<>" npx hardhat run ./script/hardhat/deploy.ts --network testnet

Documentation

Documentation is autogenerated using solidity-docgen.

They can be generated by running yarn docgen

Deployments

Deployments are managed using hardhat-deploy. Deployment scripts are in the deploy directory and run automatically when starting the hardhat node.

Deployed contract abis and addresses are exported in the deployments directory. To create a summary export of all contracts deployed to a network run

$ yarn hardhat export --network <network-name> --export ./deployments/<network-name>.json

Discussion

For any concerns with the protocol, open an issue or visit us on Telegram to discuss.

For security concerns, please contact the administrators of our telegram chat.