Skip to content

Commit

Permalink
Package Velvet ABI files (#253)
Browse files Browse the repository at this point in the history
- Add Velvet ABI files
- Add Velvet additional addresses
- Add Velvet vault sanity check
  • Loading branch information
miohtama authored Dec 13, 2024
1 parent bc31f9b commit 546cc00
Show file tree
Hide file tree
Showing 94 changed files with 26,581 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
# npm version need to support aave-deploy
node-version: 18
cache: 'npm'
cache-dependency-path: contracts/aave-v3-deploy/package-lock.json

Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,19 @@ centre:
@mkdir -p eth_defi/abi/1delta
@find contracts/1delta/artifacts/contracts/1delta -iname "*.json" -not -iname "*.dbg.json" -exec cp {} eth_defi/abi/1delta \;

# Compile and copy Lagoon Finance contracts
lagoon:
@(cd contracts/lagoon && make build)
@mkdir -p eth_defi/abi/lagoon
@find contracts/lagoon/out -iname "*.json" -not -iname "*.dbg.json" -exec cp {} eth_defi/abi/lagoon \;

# Compile and copy Velvet capital contracts
velvet:
@(cd contracts/velvet-core && npm i --legacy-peer-deps && npx hardhat compile)
@mkdir -p eth_defi/abi/velvet
@find contracts/velvet-core/artifacts/contracts -iname "*.json" -not -iname "*.dbg.json" -exec cp {} eth_defi/abi/velvet \;


# TODO: Not sure if this step works anymore
clean:
@rm -rf contracts/*
Expand Down
296 changes: 296 additions & 0 deletions eth_defi/abi/velvet/AccessController.json

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions eth_defi/abi/velvet/AccessModifiers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "AccessModifiers",
"sourceName": "contracts/core/access/AccessModifiers.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"inputs": [],
"name": "accessController",
"outputs": [
{
"internalType": "contract IAccessController",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
10 changes: 10 additions & 0 deletions eth_defi/abi/velvet/AccessRoles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "AccessRoles",
"sourceName": "contracts/access/AccessRoles.sol",
"abi": [],
"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea2646970667358221220bf66cd1783dfcabda1f6de8fb4e06225bf43b0f4f30249adf0e6378d19de751e64736f6c63430008110033",
"deployedBytecode": "0x6080604052600080fdfea2646970667358221220bf66cd1783dfcabda1f6de8fb4e06225bf43b0f4f30249adf0e6378d19de751e64736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Loading

0 comments on commit 546cc00

Please sign in to comment.