@hexpayday/stake-manager
v2.0.0
Published
[](https://github.com/hexpay-day/stake-manager/actions/workflows/test.yml) [
./local-developmentin the case of the hexpay.day developers, they may wish to provide the following series of envs and run the local development script as noted above in order to test in a browser
# where stakes will be ended / managed from
TEST_ADDRESS=0xE971e07BF9917e91DFbeD9165f2ea8e6FF876880
# where contracts will be deployed from
# must be first address of `DEPLOY_MNEMONIC`
DEPLOY_ADDRESS=0x73CaB6c9EDA8aBc28099aF9F5dBd100Aa998Ae72Auditors
The contracts that need to be reviewed are in the contracts folder and excludes the interfaces and test folders. The reference folder contains 3 contracts: HEX.sol, HEDRON and HSIM, and COMM. The contracts folder is ~2400 sloc. The reference contract HEX.sol is ~1640 SLOC. The HEDRON and HSIM contracts are ~2700 sloc combined. The COMM contract is ~1200 sloc.
NOTE: the contracts in this repo do not care about any tokens except for the ones listed above and the maximus perpetuals (custodial contract for a hex stake). That being said, it would be great if you familiarized yourself with the quirks of these 3 token contracts as they do break common practices.
Metrics for the repo can be generated by running yarn run metrics.
# ethereum
npx hardhat --network external write:existing:end-bundle:base --wait --mev
# if the above command fails, then run
npx hardhat --network external write:existing:end-bundle:base --wait
# pulsechain
npx hardhat --network external write:existing:end-bundle:base --wait