feat(protocol): relayer script to apply a queued waitlist deposit - #268
Open
abresas wants to merge 1 commit into
Open
feat(protocol): relayer script to apply a queued waitlist deposit#268abresas wants to merge 1 commit into
abresas wants to merge 1 commit into
Conversation
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>
poszu
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 itsWaitingDepositCreatedevent (the contract stores only their hash), sendsapplyDeposits, decodes the receipt events, then polls the pod indexer until the credit lands in the recipient'snet_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