feat: Add Airdrop Distribution Agent#22
Open
dagangtj wants to merge 1 commit intoPayPol-Foundation:mainfrom
Open
feat: Add Airdrop Distribution Agent#22dagangtj wants to merge 1 commit intoPayPol-Foundation:mainfrom
dagangtj wants to merge 1 commit intoPayPol-Foundation:mainfrom
Conversation
- Implements batch token distribution using MultisendVaultV2 - Validates addresses (checksummed, non-zero) - Checks vault balance before execution - Supports dry-run mode for cost estimation - Returns detailed per-recipient receipts - Handles CSV and JSON input formats - Multi-token support (AlphaUSD, pathUSD, etc.) - Graceful error handling with validation messages Resolves PayPol-Foundation#4
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.
Overview
Implements an Airdrop Distribution Agent that automates token airdrops using the PayPol MultisendVaultV2 contract on Tempo L1.
Changes
agents/airdrop-distributor/from templateAcceptance Criteria
Example Usage
JSON Format
{ "prompt": "Distribute 1000 AlphaUSD to community members", "payload": { "token": "AlphaUSD", "recipients": [ {"address": "0xabc...", "amount": "500"}, {"address": "0xdef...", "amount": "300"}, {"address": "0x123...", "amount": "200"} ], "dryRun": false } }CSV Format
{ "prompt": "Airdrop from CSV", "payload": { "token": "AlphaUSD", "csv": "address,amount\n0xabc...,500\n0xdef...,300", "dryRun": false } }Testing
Contract Integration
Uses PayPolMultisendVaultV2 at 0x6A467Cd4156093bB528e448C04366586a1052Fab:
Author
@dagangtj
Closes #4