Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ similar = "2.2"
async-openai = "0.14"
tokio = { version = "1.35", features = ["full"] }
futures = "0.3"
csv = "1.3"

[target.'cfg(target_os = "linux")'.dependencies]
seccompiler = "0.4.0"
Expand Down
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,36 @@ starforge wallet rotate alice --fund

Wallet rotation keeps the same local wallet name in `~/.starforge/config.toml`, but it creates a brand-new on-chain Stellar account keypair. Any scripts, signer sets, or deployment flows that referenced the previous public key still need to be updated separately.

### Batch payout commands (airdrops & contributor payments)

Pay hundreds or thousands of recipients from a CSV file with checkpointing, resume support, and fee-bump retry.

**CSV format** (`destination,amount,asset[,memo]`):

```csv
destination,amount,asset,memo
GABC...XYZ,10,XLM,contributor-q1
GDEF...UVW,25,USDC:GISSUER...,payout
```

**Sample run:**

```bash
# Validate recipients and show total cost without submitting anything
starforge batch pay --file recipients.csv --wallet payer --network testnet --dry-run

# Execute the payout (writes recipients.csv.batch-state.json as it progresses)
starforge batch pay --file recipients.csv --wallet payer --network testnet

# Check progress without submitting
starforge batch status --file recipients.csv

# Resume after interruption (also auto-detected when re-running batch pay)
starforge batch resume --file recipients.csv --wallet payer --network testnet
```

If the process is killed mid-run, re-run the same `batch pay` command or use `batch resume`. Already-confirmed rows are never resubmitted; the checkpoint file records each row as `pending`, `submitted`, `confirmed`, or `failed`.

### Network commands

```bash
Expand Down
Loading
Loading