From f432e52534a5c8757f5dd58d09254bc4dba89418 Mon Sep 17 00:00:00 2001 From: Hrik Bhowal Date: Sun, 18 Feb 2024 14:46:16 -0500 Subject: [PATCH] chore: add husky hooks --- .husky/pre-push | 1 + bun.lockb | Bin 58712 -> 59043 bytes package.json | 6 ++++-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .husky/pre-push diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 00000000..f9c003b0 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1 @@ +forge test --ffi \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index adb1b988fead3f2e538e17da054c88898575984a..8c02929e0360da607682ff9976639d112e399b63 100755 GIT binary patch delta 4738 zcmeI0eN0tl9LLYSfLx%`t7r)oW|4{tUXTq%Lo~~!tJX}*(wSyv;@h;swmg|zXrjnk_N!Y>Qc#+2zg=rHVyyo#ahn`*cOyJk&4%cm%^m@tC&!@~@wXaQ` z6xvI3t8{2K*^wia6{$h^u# zss!z;1%@)tHxy)E#lO?_TEpB6I@SpEyT*zOloi@->T6B?rPSv_RSQ$!l=6!bO}$rfB^ke0(7O0=v7>8^#^Td>MvGRx!LL8W+?kVNKwpzROK#tu9OwI%nW5)%}-H^CL1gWd}SF* z_rKXG$^@Qa^olYR`+tdGGk8;zif;LGQdDy?6!G0u)r=I?oD9Vq)v}sORsW|bcWL}S z-69@-Z)&23a#T`Oo=H94)WifRQ}wqgD!egoXwDGp=J(nSJMv}6j8Jt=NlfjTLEDq2 zFW-Omz`eoFj~q$KA3ePG*ns(CH*I?H=-UI^_g=6l_xTMs9sXiMLAPMnzCFusZ=(o4 ztD$9sLX|qcqKEAIHL+$!%)+YGL%%0jG6`RrskoXxI~qYQ5yOu9FTQXxcJ!9|!oVi3 z9ff<`WMC85zM7lsQh`leJ8C<<>B+cnjOagh=O@$QpPu*dw5fCAJCPbAUwmUGOwOG2 z)O51N#XhI7I26t+F1gXUzc`do>Nc_7Eps+6?!ymlIM-#9@bTG1JABIpzBYUubIxbr6~>t?#m6A!##d#IO+%JBt4r^SV*!$# z)1|5YpwDSn)<5`_93O}e#YbY5Goh@&Zm%m|TpZXr)W?f}ND#bPdBq%3o5P}B>=paO zk7B?0N$e4vT&l#^Vw>15J{23p!(x_T18~E+SL4M<)^?OGQpIkuQ}Ct15BCXf)=_ax z{3d=82gDEJd-1KFXdQeC*BqOMD_J6KltELXet O%IuLD3OTd)@B9mZeLL>} delta 5402 zcmeI0Z%ma{9LM3p6)r(RSfs2#Guws4Yp^Lz1F>PXW@~f(Sz4=^n-cw5FXBb?yl9wN z4fPzezD0w1?@Hgu#%Bf*Yzb0Rc1FtIsWnw58hd2aeFCqyxk3lks+*MY*XsiccQ z`BSWhQTZjHkSbjY=`h`=UBZJ4L~(0 zszLQ{1NpU}@T=Op1Jur)pgu0E0()bwOVuGU+hb_ zxEoZMN@}wN6jG%}+?Y&Gq#(H!CAT7XrTDiXtste7TM>is|JjP>{HLubI-zo5x!Ljf zT~66U+7|p^&Zw>Q#G~MNzq~OUh2nquy+^}OzmQ>y8?G_I>{9b$cG%=*7bi)ML2?a@`5Gt+ zt@E~zH(Sk)b+et}i(bfV0`0Lnb1UL$om}+SL9qgq*5T?CQ0QE)dip!K6%;RlJe~fs zL9q(r?T>dIPI)g|Qys)W4ZmW&OjMN=uY&S)1X>J=)u0BmAb!MLV?A9M)PUMpYdyV4 z{D^5>kG(X9hhIUBw1B?dU8dw5aK=WY;H2LSJ#UD^js4g(#s>=$|pd~}>+Qh_8O|6VJZd{li z+U%K=d(6SjC2QL&%!2lZGXkC&-PXRcFzcxvFV)dwYI|$Uir$*6ers(Xh<@ICENp%_ G+WjZ%-pC&S diff --git a/package.json b/package.json index 7d031524..68d65575 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "simulate": "rm -f report.csv; REPORT=1 forge test --mt 'invariantFoundry_report'", "YieldOracle:deployment:configure": "forge script script/01_DeployYieldOracle.s.sol -s 'configureDeployment()' --ffi", "YieldOracle:deployment:deploy:testnet": "forge script script/01_DeployYieldOracle.s.sol --rpc-url $GOERLI_RPC_URL --broadcast --slow", - "YieldOracle:deployment:deploy:mainnet": "forge script script/01_DeployYieldOracle.s.sol --rpc-url $MAINNET_RPC_URL --broadcast --slow --verify" + "YieldOracle:deployment:deploy:mainnet": "forge script script/01_DeployYieldOracle.s.sol --rpc-url $MAINNET_RPC_URL --broadcast --slow --verify", + "prepare": "husky" }, "dependencies": { "date-fns": "^2.30.0", @@ -23,7 +24,8 @@ "web3": "^4.1.2" }, "devDependencies": { - "bun-types": "latest" + "bun-types": "latest", + "husky": "^9.0.11" }, "peerDependencies": { "typescript": "^5.0.0"