Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: claim everything w/ concurrency #514

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

christophercampbell
Copy link
Contributor

@christophercampbell christophercampbell commented Feb 21, 2025

Description

This PR adds concurrency to claim-everything, managing nonces in memory.

Jira / Linear Tickets

Testing

env

#!/bin/bash

# kurtosis run --enclave cdk .

bridge_addr=0x83F138B325164b162b320F797b57f6f7E235ABAC
token_addr=0xEdE9cf798E0fE25D35469493f43E88FeA4a5da0E
bridge_network=1

private_key=0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625
dest_addr=$(cast wallet address --private-key $private_key)

l1_rpc="http://$(kurtosis port print cdk el-1-geth-lighthouse rpc)"
echo l1_rpc: $l1_rpc
echo balance: $(cast balance --ether --rpc-url $l1_rpc $dest_addr)

l2_rpc="$(kurtosis port print cdk cdk-erigon-rpc-001 rpc)"
echo l2_rpc: $l2_rpc
echo balance: $(cast balance --ether --rpc-url $l2_rpc $dest_addr)

bridge_service=$(kurtosis port print cdk zkevm-bridge-service-001 rpc)
echo bridge service: $bridge_service
echo bridge network: $bridge_network

bridge asset L1 -> L2

polycli ulxly bridge message \
  --bridge-address $bridge_addr \
  --private-key $private_key \
  --destination-network $bridge_network \
  --value 1 \
  --destination-address $dest_addr \
  --rpc-url $l1_rpc

claim on L2

polycli ulxly claim-everything \
  --bridge-address $bridge_addr \
  --bridge-service-map $bridge_network=$bridge_service \
  --destination-address $dest_addr \
  --private-key $private_key \
  --rpc-url $l2_rpc \
  --concurrency 3

@christophercampbell christophercampbell changed the title WIP feat/claim everything concurrent feature: claim everything w/ concurrency Feb 27, 2025
@christophercampbell christophercampbell marked this pull request as ready for review February 27, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant