Skip to content

Commit 7178e33

Browse files
committed
feat: add docs on fee system, add fee diamond ABI to exports in dist/abis
1 parent 8a2e49d commit 7178e33

File tree

4 files changed

+589
-2
lines changed

4 files changed

+589
-2
lines changed

packages/libs/contracts-sdk/Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,15 @@ get-abis: ## Get human-readable ABIs for all facets
9999
@forge inspect VincentUserFacet abi --json > abis/VincentUserFacet.abi.json
100100
@echo "Getting ABI for VincentUserViewFacet..."
101101
@forge inspect VincentUserViewFacet abi --json > abis/VincentUserViewFacet.abi.json
102-
@echo "ABIs written to abis/*.abi.json"
102+
103+
@echo "Merging facet ABIs into abis/FeeDiamond.abi.json..."
104+
@jq -s '[.[].abi] | add | unique_by(.type, .name, ((.inputs // []) | map(.type) | join(",")))' \
105+
out/OwnershipFacet.sol/OwnershipFacet.json \
106+
out/FeeViewsFacet.sol/FeeViewsFacet.json \
107+
out/FeeAdminFacet.sol/FeeAdminFacet.json \
108+
out/MorphoPerfFeeFacet.sol/MorphoPerfFeeFacet.json \
109+
out/AavePerfFeeFacet.sol/AavePerfFeeFacet.json \
110+
> abis/FeeDiamond.abi.json
111+
@echo "✅ Combined ABI written to abis/FeeDiamond.abi.json"
112+
113+
@echo "ABIs written to abis/*.abi.json"

0 commit comments

Comments
 (0)