UNPKG

@augumented-finance/protocol-v1

Version:

Augmented Protocol smart contracts

151 lines (150 loc) 10.8 kB
{ "name": "@augumented-finance/protocol-v1", "version": "1.0.6", "description": "Augmented Protocol smart contracts", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "./dist/**/*", "./dist/*" ], "scripts": { "run-env": "npm i && tail -f /dev/null", "hardhat": "hardhat", "hardhat:kovan": "hardhat --network kovan", "hardhat:tenderly-main": "hardhat --network tenderlyMain", "hardhat:ropsten": "hardhat --network ropsten", "hardhat:main": "hardhat --network main", "hardhat:docker": "hardhat --network hardhatevm_docker", "hardhat:mumbai": "hardhat --network mumbai", "hardhat:matic": "hardhat --network matic", "compile": "SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 hardhat compile", "console:fork": "MAINNET_FORK=true hardhat console", "test": "TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-augmented/*.spec.ts", "test-fork": "TS_NODE_TRANSPILE_ONLY=1 MAINNET_FORK=true hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented-fork/*.spec.ts", "test-scenarios": "npx hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/scenario.spec.ts", "test-repay-with-collateral": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/repay-with-collateral.spec.ts", "test-liquidate-with-collateral": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/flash-liquidation-with-collateral.spec.ts", "test-liquidate-underlying": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/liquidation-underlying.spec.ts", "test-configurator": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/configurator.spec.ts", "test-transfers": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/atoken-transfer.spec.ts", "test-flash": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/flashloan.spec.ts", "test-liquidate": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/liquidation-atoken.spec.ts", "test-deploy": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/test-init.spec.ts", "test-pausable": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/pausable-functions.spec.ts", "test-permit": "TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/atoken-permit.spec.ts", "test-stable-and-atokens": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/atoken-transfer.spec.ts test-suites/test-augmented/stable-token.spec.ts", "test-subgraph:scenarios": "hardhat --network hardhatevm_docker test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/subgraph-scenarios.spec.ts", "test-weth:main": "hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/weth-gateway.spec.ts", "test-uniswap": "TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented-uniswap/*.spec.ts", "test:main:check-list": "MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/mainnet/check-list.spec.ts", "test:main:augmented:subscription": "MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented/subscription.spec.ts", "test:augmented:rewards": "MAINNET_FORK=false TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/rewards.spec.ts --logs", "test:augmented:team-rewards": "MAINNET_FORK=false TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/team_rewards.spec.ts", "test:augmented:zombie-rewards": "MAINNET_FORK=false TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/zombie_pool_rewards.spec.ts", "test:augmented:pausable": "MAINNET_FORK=false TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/pausable-augmented.spec.ts", "test:main:augmented:migrator": "MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-augmented/__setup.spec.ts test-suites/test-augmented-fork/migrator_with_zombie_pool.spec.ts", "coverage": "TS_NODE_TRANSPILE_ONLY=1 hardhat compile --force && TS_NODE_TRANSPILE_ONLY=1 hardhat coverage --network coverage --testfiles \"test-suites/test-augmented/*.spec.ts\"", "aave:evm:dev:migration": "npm run compile && hardhat aave:dev", "aave:docker:full:migration": "npm run compile && npm run hardhat:docker -- augmented:mainnet", "aave:kovan:full:migration": "npm run compile && npm run hardhat:kovan -- augmented:mainnet --verify", "matic:mumbai:full:migration": "npm run compile && npm run hardhat:mumbai matic:mainnet", "matic:matic:full:migration": "npm run compile && npm run hardhat:matic matic:mainnet", "aave:kovan:full:initialize": "npm run hardhat:kovan -- full:initialize-lending-pool --verify --pool Augmented", "aave:ropsten:full:migration": "npm run compile && npm run hardhat:ropsten -- augmented:mainnet --verify", "aave:fork:main:tenderly": "npm run compile && npm run hardhat:tenderly-main -- augmented:mainnet", "augmented:main": "hardhat augmented:mainnet", "aave:fork:main": "npm run compile && MAINNET_FORK=true hardhat augmented:mainnet", "aave:main:full:migration": "npm run compile && npm run hardhat:main -- augmented:mainnet --verify", "aave:main:full:initialize": "npm run compile && MAINNET_FORK=true hardhat full:initialize-tokens --pool Augmented", "prettier:check": "npx prettier -c 'tasks/**/*.ts' 'contracts/**/*.sol' 'helpers/**/*.ts' 'test-suites/test-augmented/**/*.ts'", "prettier:write": "prettier --write 'tasks/**/*.ts' 'contracts/**/*.sol' 'helpers/**/*.ts' 'test-suites/test-augmented/**/*.ts'", "ci:test": "npm run compile && npm run test", "ci:clean": "rm -rf ./artifacts ./cache ./types", "print-contracts:kovan": "npm run hardhat:kovan -- print-contracts", "print-contracts:main": "npm run hardhat:main -- print-contracts", "print-contracts:ropsten": "npm run hardhat:ropsten -- print-contracts", "dev:deployUIProvider": "npm run hardhat:kovan deploy-UiPoolDataProvider", "dev:deployUniswapRepayAdapter": "hardhat --network kovan deploy-UniswapRepayAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c", "dev:UniswapLiquiditySwapAdapter": "hardhat --network kovan deploy-UniswapLiquiditySwapAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c", "main:deployUniswapRepayAdapter": "hardhat --network main deploy-UniswapRepayAdapter --provider 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5 --router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D --weth 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "main:UniswapLiquiditySwapAdapter": "hardhat --network main deploy-UniswapLiquiditySwapAdapter --provider 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5 --router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D --weth 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "kovan:verify": "npm run hardhat:kovan verify:general -- --all --pool Augmented", "ropsten:verify": "npm run hardhat:ropsten verify:general -- --all --pool Augmented", "mainnet:verify": "npm run hardhat:main verify:general -- --all --pool Augmented", "kovan:verify:tokens": "npm run hardhat:kovan verify:tokens -- --pool Augmented", "ropsten:verify:tokens": "npm run hardhat:ropsten verify:tokens -- --pool Augmented", "mainnet:verify:tokens": "npm run hardhat:main verify:tokens -- --pool Augmented", "print-config:fork:mainnet": "MAINNET_FORK=true hardhat print-config:fork", "print-config:kovan": "hardhat --network kovan print-config --pool Augmented --data-provider 0xA1901785c29cBd48bfA74e46b67C736b26054fa4", "main:fork:initialize-tokens": "npm run compile && MAINNET_FORK=true hardhat full:initialize-tokens --pool Augmented", "main:initialize-tokens": "npm run compile && hardhat --network main full:initialize-tokens --pool Augmented", "kovan:initialize-tokens": "npm run compile && hardhat --network kovan full:initialize-tokens --pool Augmented", "external:deploy-assets-kovan": "npm run compile && hardhat --network kovan external:deploy-new-asset --symbol ${SYMBOL} --verify", "external:deploy-assets-main": "npm run compile && hardhat --network main external:deploy-new-asset --symbol ${SYMBOL} --verify", "build:package": "rm -rf ./dist && tsc && cp types/*.d.ts dist/types && cp -R abi dist && cp -R contracts dist" }, "devDependencies": { "@nomiclabs/hardhat-ethers": "^2.0.0", "@nomiclabs/hardhat-etherscan": "^2.1.2", "@nomiclabs/hardhat-waffle": "^2.0.0", "@openzeppelin/contracts": "3.1.0", "@tenderly/hardhat-tenderly": "^1.1.0-beta.4", "@typechain/ethers-v5": "^2.0.0", "@types/chai": "4.2.11", "@types/lowdb": "1.0.9", "@types/mocha": "7.0.2", "@types/node": "14.0.5", "bignumber.js": "9.0.0", "chai": "4.2.0", "chai-bignumber": "3.0.0", "dotenv": "^8.2.0", "eth-sig-util": "2.5.3", "ethereum-waffle": "3.0.2", "ethereumjs-util": "7.0.2", "ethers": "^5.1.0", "globby": "^11.0.1", "hardhat": "^2.2.0", "hardhat-abi-exporter": "^2.2.1", "hardhat-gas-reporter": "^1.0.4", "hardhat-tracer": "^1.0.0-alpha.6", "hardhat-typechain": "^0.3.5", "husky": "^4.2.5", "lowdb": "1.0.0", "prettier": "^2.0.5", "prettier-plugin-solidity": "^1.0.0-alpha.53", "pretty-quick": "^2.0.1", "solidity-coverage": "0.7.16", "ts-generator": "^0.1.1", "ts-node": "^8.10.2", "tslint": "^6.1.2", "tslint-config-prettier": "^1.18.0", "tslint-plugin-prettier": "^2.3.0", "typechain": "^4.0.3", "typescript": "^4.0.5" }, "husky": { "hooks": { "pre-commit": "pretty-quick --staged --pattern 'contracts/**/*.sol' --pattern 'helpers/**/*.ts' --pattern 'test-suites/test-augmented/**/*.ts' --pattern 'tasks/**/*.ts'" } }, "author": "Aave", "contributors": [ "Ernesto Boado <ernesto@aave.com>", "Emilio Frangella <emilio@aave.com>", "Andrey Kozlov <andrey@aave.com>", "David Racero <david.k@aave.com>", "Pol Sendra <pol@aave.com>", "David Truong <david@aave.com>" ], "license": "AGPLv3", "dependencies": { "tmp-promise": "^3.0.2" }, "keywords": [ "agf", "protocol-v1", "ethereum", "solidity" ] }