Skip to content

Commit

Permalink
feat: bigger merkle tree
Browse files Browse the repository at this point in the history
  • Loading branch information
0xteddybear committed Oct 27, 2024
1 parent c93a122 commit 3ab45bf
Show file tree
Hide file tree
Showing 2 changed files with 965 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

claims_file=./setup/ClaimList.t.sol
claims_amount=10
claims_amount=100
users_amount=100

# Claims format:
random_int() {
# 2^ 64 - 2 , max range for shuf, == 18e18, not ideal.
echo "$(shuf -n 1 -i 0-18446744073709551614)"
Expand Down Expand Up @@ -35,7 +35,8 @@ contract ClaimsList {
// remaining randomly-generated claims
EOF
for i in $(seq "$claims_amount") ; do
recipient="0x00000000000000000000000000000000000$(shuf -n 1 -i 1-3)0000";
# have some overlap with medusa's actors
recipient="address($(shuf -n 1 -i 1-${users_amount}) << 16)";
ethAmount=$(random_int)
daiAmount=$(random_int)
gtcAmount=$(random_int)
Expand Down
Loading

0 comments on commit 3ab45bf

Please sign in to comment.