-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
142 lines (142 loc) · 17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"name": "@alpaca-finance/alpaca-money-market",
"version": "0.0.3",
"main": "index.js",
"license": "MIT",
"scripts": {
"prepublishOnly": "yarn compile",
"compile": "hardhat compile && yarn build",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "yarn run build:cjs",
"bsc_mainnet": "hardhat console --no-compile --network bsc_mainnet",
"----------Deploy Foundry Script-------------": "----------Deploy Foundry Script-------------",
"exec:bsc_mainnet:proxy-admin:deploy": "forge script script/deployments/ProxyAdmin/deploy/ProxyAdmin.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:minifl:deploy": "forge script script/deployments/MiniFL/deploy/MiniFL.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:minifl:upgrade": "forge script script/deployments/MiniFL/upgrade/MiniFL.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:minifl:config:set-pool": "forge script script/deployments/MiniFL/config/SetPool.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:minifl:config:set-alpaca-per-sec": "forge script script/deployments/MiniFL/config/SetAlpacaPerSecond.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:minifl:config:set-whitelist-callers": "forge script script/deployments/MiniFL/config/SetWhitelistedCallers.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:minifl:script:mass-update-pools": "forge script script/deployments/MiniFL/script/MassUpdatePools.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:minifl:config:set-pool-rewarders": "forge script script/deployments/MiniFL/config/SetPoolRewarders.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:ib-token:deploy": "forge script script/deployments/InterestBearingToken/deploy/InterestBearingTokenImplementation.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:debt-token:deploy": "forge script script/deployments/DebtToken/deploy/DebtTokenImplementation.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:deploy": "forge script script/deployments/MoneyMarket/deploy/MoneyMarket.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:cut:flash-loan-facet": "forge script script/deployments/MoneyMarket/diamond-cut/FlashloanFacetCut.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-fees": "forge script script/deployments/MoneyMarket/config/SetFees.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-max-num-token": "forge script script/deployments/MoneyMarket/config/SetMaxNumOfToken.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-min-debt-size": "forge script script/deployments/MoneyMarket/config/SetMinDebtSize.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-liquidation-params": "forge script script/deployments/MoneyMarket/config/SetLiquidationParams.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-liquidation-treasury": "forge script script/deployments/MoneyMarket/config/SetLiquidationTreasury.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-oracle": "forge script script/deployments/MoneyMarket/config/SetOracle.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-ib-token-implementation": "forge script script/deployments/MoneyMarket/config/SetIbTokenImplementation.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-debt-token-implementation": "forge script script/deployments/MoneyMarket/config/SetDebtTokenImplementation.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-liquidate-strat-ok": "forge script script/deployments/MoneyMarket/config/SetLiquidationStratsOk.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-liquidator-ok": "forge script script/deployments/MoneyMarket/config/SetLiquidatorsOk.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-account-manager-ok": "forge script script/deployments/MoneyMarket/config/SetAccountManagersOk.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-repurchase-reward-model": "forge script script/deployments/MoneyMarket/config/SetRepurchaseRewardModel.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-risk-manager-ok": "forge script script/deployments/MoneyMarket/config/SetRiskManagersOkScript.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-operator-ok": "forge script script/deployments/MoneyMarket/config/SetOperatorsOk.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:withdraw-protocol-reserves": "forge script script/deployments/MoneyMarket/config/WithdrawProtocolReserves.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-flash-loan-params": "forge script script/deployments/MoneyMarket/config/SetFlashloanParams.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-non-collat-borrower-ok": "forge script script/deployments/MoneyMarket/config/SetNonCollatBorrowerOk.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:config:set-protocol-configs": "forge script script/deployments/MoneyMarket/config/SetProtocolConfigs.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:admin-facet:deploy": "forge script script/deployments/MoneyMarket/deploy/AdminFacet.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:flash-loan-facet:deploy": "forge script script/deployments/MoneyMarket/deploy/FlashloanFacet.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market:view-facet:deploy": "forge script script/deployments/MoneyMarket/deploy/ViewFacet.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:mm-account-manager:deploy": "forge script script/deployments/MoneyMarketAccountManager/deploy/MoneyMarketAccountManager.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:pancake-v2-liquidate-strat:deploy": "forge script script/deployments/PancakeswapV2LiquidationStrategy/deploy/PancakeswapV2LiquidationStrategy.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:pancake-v2-liquidate-ib-strat:deploy": "forge script script/deployments/PancakeswapV2IbTokenLiquidationStrategy/deploy/PancakeswapV2IbTokenLiquidationStrategy.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:pancake-v3-liquidate-ib-strat:deploy": "forge script script/deployments/PancakeswapV3IbTokenLiquidationStrategy/deploy/PancakeswapV3IbTokenLiquidationStrategy.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:pancake-v3-liquidate-ib-strat:config:set-path": "forge script script/deployments/PancakeswapV3IbTokenLiquidationStrategy/config/SetPaths.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:liquidate-strat:config:set-caller-ok": "forge script script/deployments/PancakeswapV2LiquidationStrategy/config/SetCallersOk.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:liquidate-strat:config:set-path": "forge script script/deployments/PancakeswapV2LiquidationStrategy/config/SetPaths.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:swap-helper-liquidation-strat:deploy": "forge script script/deployments/SwapHelperIbLiquidationStrategy/deploy/SwapHelperIbLiquidationStrategy.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:alpaca-v2-oracle:deploy": "forge script script/deployments/AlpacaV2Oracle/deploy/AlpacaV2Oracle.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:alpaca-v2-oracle:config:set-token-config": "forge script script/deployments/AlpacaV2Oracle/config/SetTokenConfig.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:alpaca-v2-oracle:config:set-pools": "forge script script/deployments/AlpacaV2Oracle/config/SetPools.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:alpaca-v2-oracle:config:set-oracle": "forge script script/deployments/AlpacaV2Oracle/config/SetOracle.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:alpaca-v2-oracle02:deploy": "forge script script/deployments/AlpacaV2Oracle02/deploy/AlpacaV2Oracle02.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:oracle-medianizer:deploy": "forge script script/deployments/OracleMedianizer/deploy/OracleMedianizer.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:wnative-relayer:config:set-caller-ok": "forge script script/deployments/WNativeRelayer/config/setCallerOk.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:money-market-reader:deploy": "forge script script/deployments/MoneyMarketReader/deploy/MoneyMarketReader.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:fix-fee-model-500-bps:deploy": "forge script script/deployments/RepurchaseRewardModel/deploy/FixedFeeModel500Bps.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:triple-slope-model0:deploy": "forge script script/deployments/InterestModels/deploy/TripleSlopeModel0.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:double-slope-model1:deploy": "forge script script/deployments/InterestModels/deploy/MMDoubleSlopeModel1.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:double-slope-model2:deploy": "forge script script/deployments/InterestModels/deploy/MMDoubleSlopeModel2.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:double-slope-model3:deploy": "forge script script/deployments/InterestModels/deploy/MMDoubleSlopeModel3.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:flat-slope-model1:deploy": "forge script script/deployments/InterestModels/deploy/MMFlatSlopeModel1.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:flat-slope-model2:deploy": "forge script script/deployments/InterestModels/deploy/MMFlatSlopeModel2.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:flat-slope-model3:deploy": "forge script script/deployments/InterestModels/deploy/MMFlatSlopeModel3.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:rewarder:deploy": "forge script script/deployments/Rewarder/deploy/Rewarder.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:rewarder:config:add-pool": "forge script script/deployments/Rewarder/config/AddPool.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:rewarder:config:set-pool": "forge script script/deployments/Rewarder/config/SetPool.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:rewarder:config:set-reward-per-second": "forge script script/deployments/Rewarder/config/SetRewardPerSecond.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:v2-path-reader:deploy": "forge script script/deployments/PathReader/deploy/UniSwapV2LikePathReader.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:v2-path-reader:config:set-path": "forge script script/deployments/PathReader/config/SetV2Paths.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:pcs-v3-path-reader:deploy": "forge script script/deployments/PathReader/deploy/PCSV3PathReader.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:pcs-v3-path-reader:config:set-path": "forge script script/deployments/PathReader/config/SetPCSV3Paths.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:smart-treasury:deploy": "forge script script/deployments/SmartTreasury/deploy/SmartTreasury.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:smart-treasury:config:set-alloc-point": "forge script script/deployments/SmartTreasury/config/SetAllocPointScript.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:smart-treasury:config:set-revenue-token": "forge script script/deployments/SmartTreasury/config/SetRevenueTokenScript.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:smart-treasury:config:set-treasury-address": "forge script script/deployments/SmartTreasury/config/SetTreasuryAddressScript.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:smart-treasury:config:set-whitelist-callers": "forge script script/deployments/SmartTreasury/config/SetWhitelistesCallers.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:smart-treasury:config:set-slippage-tolerance": "forge script script/deployments/SmartTreasury/config/SetSlippageToleranceBps.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:swap-helper:deploy": "forge script script/deployments/SwapHelper/deploy/SwapHelper.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:swap-helper:config:set-swap-info-pancake-swap-v2": "forge script script/deployments/SwapHelper/config/SetSwapInfoPancakeSwapV2.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:swap-helper:config:set-swap-info-pancake-swap-v3": "forge script script/deployments/SwapHelper/config/SetSwapInfoPancakeSwapV3.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:swap-helper:config:set-swap-info-thena-v1": "forge script script/deployments/SwapHelper/config/SetSwapInfoThenaV1.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"exec:bsc_mainnet:swap-helper:config:set-swap-info-thena-fusion": "forge script script/deployments/SwapHelper/config/SetSwapInfoThenaFusion.s.sol --rpc-url bsc_mainnet --broadcast --slow",
"----------Deploy Hardhat -------------": "----------Deploy Hardhat -------------",
"exec:bsc_mainnet:money-market:lend-facet:deploy": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags LendFacetDeploy",
"exec:bsc_mainnet:money-market:borrow-facet:deploy": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags BorrowFacetDeploy",
"exec:bsc_mainnet:money-market:liquidation-facet:deploy": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags LiquidationFacetDeploy",
"exec:bsc_mainnet:money-market:interest-model:deploy": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags FlatSlopeModelDeploy",
"exec:bsc_mainnet:money-market:diamond-cut": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags ExecuteDiamondCut",
"exec:bsc_mainnet:money-market:upgrade:account-manager": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags UpgradeMoneyMarketAccountManager",
"exec:bsc_mainnet:money-market:config:set-token-max-capacity": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags SetTokenMaxCapacity",
"exec:bsc_mainnet:money-market:config:set-token-config": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags SetTokenConfig",
"exec:bsc_mainnet:config:transfer-ownership": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags TransferOwnership",
"exec:bsc_mainnet:money-market:config:set-non-collat-interest-model": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags SetNonCollatInterestModel",
"exec:bsc_mainnet:config:accept-ownership": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags AcceptOwnership",
"exec:bsc_mainnet:money-market:config:open-market": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags OpenMarket",
"exec:bsc_mainnet:chainlink-price-oracle:config:set-price-feeds": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags SetPriceFeed",
"exec:bsc_mainnet:oracle-medianizer:config:set-multiple-primary-sources": "hardhat --network bsc_mainnet deploy --no-compile --reset --tags SetMultiplePrimarySources"
},
"devDependencies": {
"@safe-global/safe-core-sdk": "^3.3.3",
"@safe-global/safe-core-sdk-types": "^1.9.1",
"@safe-global/safe-ethers-lib": "^1.9.3",
"@safe-global/safe-service-client": "^2.0.1",
"@typechain/ethers-v5": "^10.0.0",
"@typechain/hardhat": "^5.0.0",
"@types/lodash": "^4.14.191",
"@types/mocha": "^9.1.0",
"@types/readline-sync": "^1.4.4",
"lodash": "^4.17.21",
"readline-sync": "^1.4.10",
"ts-node": "^10.7.0",
"typechain": "^8.0.0",
"typescript": "^4.6.2"
},
"dependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.5",
"@openzeppelin/contracts": "^4.7.1",
"@openzeppelin/contracts-upgradeable": "^4.7.3",
"@openzeppelin/hardhat-upgrades": "^1.16.1",
"@typechain/ethers-v5": "^10.2.0",
"commander": "^9.2.0",
"dotenv": "^16.0.0",
"ethers": "^5.7.0",
"hardhat": "^2.9.1",
"hardhat-deploy": "^0.11.10",
"prettier": "^2.6.0",
"prettier-plugin-solidity": "^1.0.0-beta.19"
},
"files": [
"typechain",
"artifacts"
],
"engines": {
"node": ">=14.15.4"
}
}