Skip to content

Commit

Permalink
Add submodule and ABIs
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuh25 committed Dec 23, 2024
1 parent 434d7d3 commit 4b37267
Show file tree
Hide file tree
Showing 42 changed files with 6,681 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@
[submodule "contracts/velvet-core"]
path = contracts/velvet-core
url = https://github.com/Velvet-Capital/velvet-core.git
[submodule "contracts/uniswap-universal-router"]
path = contracts/uniswap-universal-router
url = https://github.com/Uniswap/universal-router.git
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ copy-uniswapv3-abi: uniswapv3
@find contracts/uniswap-v3-core/artifacts/contracts -iname "*.json" -not -iname "*.dbg.json" -exec cp {} eth_defi/abi/uniswap_v3 \;
@find contracts/uniswap-v3-periphery/artifacts/contracts -iname "*.json" -not -iname "*.dbg.json" -exec cp {} eth_defi/abi/uniswap_v3 \;

# Compile v3 core and periphery
uniswap-universalrouter:
@(cd contracts/uniswap-universal-router && yarn install && yarn compile) > /dev/null

# Extract ABI and copied over to our abi/uniswap_universal_router/ folder
copy-uniswap-universalrouter-abi: uniswap-universalrouter
@mkdir -p eth_defi/abi/uniswap_universal_router
@find contracts/uniswap-universal-router/artifacts/contracts -iname "*.json" -not -iname "*.dbg.json" -exec cp {} eth_defi/abi/uniswap_universal_router \;
@find contracts/uniswap-universal-router/artifacts/permit2 -iname "*.json" -not -iname "*.dbg.json" -exec cp {} eth_defi/abi/uniswap_universal_router \;

aavev3:
@(cd contracts/aave-v3-deploy && npm ci && npm run compile) > /dev/null
@mkdir -p eth_defi/abi/aave_v3
Expand Down
1 change: 1 addition & 0 deletions contracts/uniswap-universal-router
10 changes: 10 additions & 0 deletions eth_defi/abi/uniswap_universal_router/Allowance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "Allowance",
"sourceName": "permit2/src/libraries/Allowance.sol",
"abi": [],
"bytecode": "0x6080806040523460175760119081601d823930815050f35b600080fdfe600080fdfea164736f6c6343000811000a",
"deployedBytecode": "0x600080fdfea164736f6c6343000811000a",
"linkReferences": {},
"deployedLinkReferences": {}
}
Loading

0 comments on commit 4b37267

Please sign in to comment.