Skip to content

feat(protocol): relayer script to apply a queued waitlist deposit - #268

Open
abresas wants to merge 1 commit into
mainfrom
feat/waitlist-apply-script
Open

feat(protocol): relayer script to apply a queued waitlist deposit#268
abresas wants to merge 1 commit into
mainfrom
feat/waitlist-apply-script

Conversation

@abresas

@abresas abresas commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #267 (the commit landed on that branch after it merged, so it never reached main).

protocol/scripts/apply-deposit.sh — relayer tooling for the waitlist contract: RELAYER_PRIVATE_KEY=0x… ./apply-deposit.sh <deposit_id> recovers the deposit's original values from its WaitingDepositCreated event (the contract stores only their hash), sends applyDeposits, decodes the receipt events, then polls the pod indexer until the credit lands in the recipient's net_deposits. Skips the source-chain send when the deposit is already applied; distinguishes withdrawn from nonexistent ids. Defaults target the canary waitlist on Arbitrum One; everything overridable via env.

Exercised live on canary: lookup, already-applied, withdrawn/nonexistent, and pod-credit wait paths (the send path verified up to gas estimation with a throwaway key).

🤖 Generated with Claude Code

Given a deposit id, recovers the deposit's original values from its
WaitingDepositCreated event (the contract stores only their hash), sends
applyDeposits with a relayer-enabled private key, decodes the receipt
events, and waits for the bridged credit to land in the recipient's pod
CLOB balance (net_deposits). Skips the source-chain send when the deposit
is already applied; distinguishes withdrawn from nonexistent ids.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

2 participants