@hifi/flash-swap

v1.3.1
Flash swap implementations for liquidating underwater accounts in Hifi
blockchain decentralized-finance ethereum flash-loans hifi smart-contracts solidity uniswap

build

yarn typechain && tsc --project ./tsconfig.prod.json

clean

shx rm -rf ./artifacts ./cache ./coverage ./typechain ./coverage.json ./tsconfig.prod.tsbuildinfo

coverage

cross-env CODE_COVERAGE=true hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles "./test/**/*.ts"

lint

yarn lint:sol && yarn lint:ts && yarn prettier:check

lint:sol

solhint --config ./.solhint.json --max-warnings 0 "contracts/**/*.sol"

lint:ts

eslint --config ../../.eslintrc.yaml --ignore-path ../../.eslintignore --ext .js,.ts .

prepack

cross-env TS_NODE_TRANSPILE_ONLY=true yarn hardhat prepare-package && tsc --project ./tsconfig.prod.json

prettier

prettier --config ../../.prettierrc.js --ignore-path ../../.prettierignore --write "**/*.{js,json,md,sol,ts}"

prettier:check

prettier --check --config ../../.prettierrc.js --ignore-path ../../.prettierignore "**/*.{js,json,md,sol,ts}"

test

hardhat test

typechain

hardhat typechain
npm i @hifi/[email protected]

Metadata

Downloads

Maintainers