Skip to content

Commit

Permalink
Add csv writing to premint logic
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieraykatz committed Jul 29, 2024
1 parent 3dd7db2 commit 7b7d2a0
Show file tree
Hide file tree
Showing 3 changed files with 472 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,10 @@ execute-testnet-premint-3:
forge script script/premint/Premint.s.sol --sig "run(string,uint256)" "$$name" 157680000 \
--rpc-url $(BASE_RPC_URL) --fork-retries 5 --broadcast; \
done

write-ids:
@for name in $$(cat script/premint/premint1); \
do \
echo "$$name"; \
forge script script/Scratch.s.sol --ffi --sig "run(string)" "$$name"; \
done
8 changes: 8 additions & 0 deletions py/writer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/python3

import sys


print("In writer.py")
with open("output", 'a') as f:
f.write(sys.argv[1])
Loading

0 comments on commit 7b7d2a0

Please sign in to comment.