This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/fixes validation nonces tests (#83)
* implement testMultipleVaultsWithLiensOnTheSameCollateral * changes to enable multiple loans at once properly * golf down commitToLien further * remove dead code * rm dead code * more golfing * refacot our redundant expressions * fix slot loads for delegate * cleanup dead state, move storage structs to interface * gpl pointer update * restore missing validate in commit to lien, move nonce invalidation into vaults from router * function to allow enabling allowlist * test's to prove failure around signatures * move incrementNonce, add tests * remove the mapping since we only care about the vault itself * pack structs * add strategist shutdown to vault, disables the vault from deposits or commitToLien * cancel auction flow fixes * update lib gpl pointer * loan generator updates, v3 wip * change releaseTo to use safeTransferFrom, update harness to utilize ERC721Receiver * refactor to use withdraw proxy object * modifications for v3 * V3 Lending and Claim Fees flash action added * migrate collateral token and lien token file methods to use enums * adding yarn.lock * router updates to support erc4626 * migrate helpers to use new router flow * remove snapshot * update pointer * updates for postinstall, ffi target, tsconfig changes * fix test install, update yarn lock * dont execute postinstall with sh * build to dist instead of individual * ignore dist folder * remove sherlock content block * remove dummy scripts * check the vault is valid before decreasing lien epoch count * cleanup and sherlock fixes * move imports to remapped style * pointer update * added missing guard to vault withdraw, removed vault withdraw from public vault inheritance graph cleanup and fixes for the PR one bug remaining with testMultipleVaultsWithLiensOnTheSameCollateral * flow for withdraw accountants to not deploy t0, logging on the test * gpl updated * fix type Co-authored-by: Joseph Delong <[email protected]> Co-authored-by: Andrew Redden <=>
- Loading branch information
1 parent
b756427
commit 99d8b34
Showing
52 changed files
with
2,113 additions
and
871 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ coverage.json | |
typechain | ||
.DS_Store | ||
|
||
dist | ||
#Hardhat files | ||
cache | ||
artifacts | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule astaria-sdk
updated
from 228ea2 to d0f41a
Submodule gpl
updated
from 6cdc23 to ce7d52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
NPX="npx" | ||
|
||
cd lib/astaria-sdk && yarn && yarn build && cd ../.. | ||
|
||
if [[ -z $CI ]] ; then | ||
NPX= | ||
fi | ||
SCRIPT="${NPX-:""} tsc" | ||
|
||
${SCRIPT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env zsh | ||
|
||
# This script is used to generate typechain types for the contracts in the myArray+=(item) | ||
|
||
# define array and add all contracts from out.sol that are in typechainabi | ||
|
||
accepted_file_names=("AuctionHouse.sol" "CollateralToken.sol" "LienToken.sol" "MultiRolesAuthority.sol" "PublicVault.sol" "Vault.sol" "WithdrawProxy.sol" "AstariaRouter.sol" "VaultImplementation.sol") | ||
|
||
forge build | ||
# loop through the array and generate types for each contract | ||
rm -rf typechainabi && mkdir -p typechainabi | ||
for i in ./out/*; | ||
do | ||
file=$(basename "${i}") | ||
if [[ ${accepted_file_names[(ie)$file]} -le ${#accepted_file_names} ]]; then | ||
cp -r "$i"/*.json "typechainabi/" | ||
fi | ||
done | ||
typechain --target=ethers-v5 typechainabi/**/**.json --out-dir=typechain --show-stack-traces |
Oops, something went wrong.