@@ -132,6 +132,10 @@ anvil_start_with_block_time:
132132 @echo " Starting Anvil..."
133133 anvil --load-state contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json --block-time 7
134134
135+ anvil_start_with_block_time_with_more_prefunded_accounts :
136+ @echo " Starting Anvil..."
137+ anvil --load-state contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json --block-time 7 -a 2000
138+
135139_AGGREGATOR_ :
136140
137141aggregator_start :
@@ -284,7 +288,7 @@ verifier_disable:
284288
285289__BATCHER__ :
286290
287- BURST_SIZE = 5
291+ BURST_SIZE ?= 5
288292
289293user_fund_payment_service :
290294 @. ./scripts/user_fund_payment_service_devnet.sh
@@ -301,6 +305,11 @@ batcher_start_local: user_fund_payment_service
301305 @$(MAKE ) run_storage &
302306 @cargo run --manifest-path ./batcher/aligned-batcher/Cargo.toml --release -- --config ./config-files/config-batcher.yaml --env-file ./batcher/aligned-batcher/.env.dev
303307
308+ batcher_start_local_no_fund :
309+ @echo " Starting Batcher..."
310+ @$(MAKE ) run_storage &
311+ @cargo run --manifest-path ./batcher/aligned-batcher/Cargo.toml --release -- --config ./config-files/config-batcher.yaml --env-file ./batcher/aligned-batcher/.env.dev
312+
304313install_batcher :
305314 @cargo install --path batcher/aligned-batcher
306315
@@ -448,6 +457,82 @@ batcher_send_burst_groth16: batcher/target/release/aligned
448457 @mkdir -p scripts/test_files/gnark_groth16_bn254_infinite_script/infinite_proofs
449458 @./batcher/aligned/send_burst_tasks.sh $(BURST_SIZE ) $(START_COUNTER )
450459
460+
461+ __TASK_SENDER__ :
462+ BURST_TIME_SECS ?= 3
463+
464+ task_sender_generate_groth16_proofs :
465+ @cd batcher/aligned-task-sender && \
466+ cargo run --release -- generate-proofs \
467+ --number-of-proofs $(NUMBER_OF_PROOFS ) --proof-type groth16 \
468+ --dir-to-save-proofs $(CURDIR ) /scripts/test_files/task_sender/proofs
469+
470+ # ===== DEVNET =====
471+ task_sender_fund_wallets_devnet :
472+ @cd batcher/aligned-task-sender && \
473+ cargo run --release -- generate-and-fund-wallets \
474+ --eth-rpc-url http://localhost:8545 \
475+ --network devnet \
476+ --amount-to-deposit 1 \
477+ --amount-to-deposit-to-aligned 0.9999 \
478+ --private-keys-filepath $(CURDIR ) /batcher/aligned-task-sender/wallets/devnet
479+
480+ task_sender_send_infinite_proofs_devnet :
481+ @cd batcher/aligned-task-sender && \
482+ cargo run --release -- send-infinite-proofs \
483+ --burst-size $(BURST_SIZE ) --burst-time-secs $(BURST_TIME_SECS ) \
484+ --eth-rpc-url http://localhost:8545 \
485+ --batcher-url ws://localhost:8080 \
486+ --network devnet \
487+ --proofs-dirpath $(CURDIR ) /scripts/test_files/task_sender/proofs \
488+ --private-keys-filepath $(CURDIR ) /batcher/aligned-task-sender/wallets/devnet
489+
490+ task_sender_test_connections_devnet :
491+ @cd batcher/aligned-task-sender && \
492+ cargo run --release -- test-connections \
493+ --batcher-url ws://localhost:8080 \
494+ --num-senders $(NUM_SENDERS )
495+
496+ # ===== HOLESKY-STAGE =====
497+ task_sender_generate_and_fund_wallets_holesky_stage :
498+ @cd batcher/aligned-task-sender && \
499+ cargo run --release -- generate-and-fund-wallets \
500+ --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com \
501+ --network holesky-stage \
502+ --funding-wallet-private-key $(FUNDING_WALLET_PRIVATE_KEY ) \
503+ --number-wallets $(NUM_WALLETS ) \
504+ --amount-to-deposit $(AMOUNT_TO_DEPOSIT ) \
505+ --amount-to-deposit-to-aligned $(AMOUNT_TO_DEPOSIT_TO_ALIGNED ) \
506+ --private-keys-filepath $(CURDIR ) /batcher/aligned-task-sender/wallets/holesky-stage
507+
508+ task_sender_send_infinite_proofs_holesky_stage :
509+ @cd batcher/aligned-task-sender && \
510+ cargo run --release -- send-infinite-proofs \
511+ --burst-size $(BURST_SIZE ) --burst-time-secs $(BURST_TIME_SECS ) \
512+ --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com \
513+ --batcher-url wss://stage.batcher.alignedlayer.com \
514+ --network holesky-stage \
515+ --proofs-dirpath $(CURDIR ) /scripts/test_files/task_sender/proofs \
516+ --private-keys-filepath $(CURDIR ) /batcher/aligned-task-sender/wallets/holesky-stage
517+
518+ task_sender_test_connections_holesky_stage :
519+ @cd batcher/aligned-task-sender && \
520+ cargo run --release -- test-connections \
521+ --batcher-url wss://stage.batcher.alignedlayer.com \
522+ --num-senders $(NUM_SENDERS )
523+
524+ __UTILS__ :
525+ aligned_get_user_balance_devnet :
526+ @cd batcher/aligned/ && cargo run --release -- get-user-balance \
527+ --user_addr $(USER_ADDR )
528+
529+ aligned_get_user_balance_holesky :
530+ @cd batcher/aligned/ && cargo run --release -- get-user-balance \
531+ --rpc_url https://ethereum-holesky-rpc.publicnode.com \
532+ --network holesky \
533+ --user_addr $(USER_ADDR )
534+
535+
451536__GENERATE_PROOFS__ :
452537 # TODO add a default proving system
453538
0 commit comments