Skip to content

Commit

Permalink
feat: add interface generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ethyla committed Nov 14, 2024
1 parent 4869fe2 commit eb1596e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/helpers/generateInterfaces.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

create_interface () {
contract="$(basename "$file" | cut -d. -f1)"
dir="$(dirname "$file")"
cast interface "$file" -n $contract > scripts/helpers/interfaces/$contract.generated.sol
}

forge compile --skip test script

mkdir -p scripts/helpers/interfaces

find out -type f -print0 | while read -d $'\0' file
do
echo $file
create_interface
done


0 comments on commit eb1596e

Please sign in to comment.