@@ -1000,7 +1000,7 @@ osvm snapshot export \
10001000osvm snapshot export \
10011001 --snapshot-dir /path/to/snapshot \
10021002 --output whales.json \
1003- --min-balance 1000
1003+ --filter- min-balance 1000
10041004```
10051005
10061006#### Snapshot Statistics
@@ -1057,9 +1057,8 @@ osvm snapshot stats \
10571057# Find high-value accounts
10581058osvm snapshot read \
10591059 --snapshot-dir /path/to/snapshot \
1060- --min-balance 1000 \
1061- --limit 100 \
1062- --sort balance
1060+ --filter-min-balance 1000 \
1061+ --limit 100
10631062
10641063# Expected output:
10651064# 🐋 Top 100 Accounts by Balance
@@ -1089,22 +1088,22 @@ osvm snapshot read \
10891088
10901089# Find whales with data (smart contracts)
10911090osvm snapshot read \
1092- --min-balance 1000 \
1093- --min-data -size 100
1091+ --filter- min-balance 1000 \
1092+ --filter-min -size 100
10941093
10951094# Find token whales
10961095osvm snapshot read \
10971096 --filter-owner TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA \
1098- --min-balance 1000
1097+ --filter- min-balance 1000
10991098```
11001099
11011100#### Account Search
11021101
11031102``` bash
11041103# Find specific account
11051104osvm snapshot find \
1106- --snapshot-dir /path/to/snapshot \
1107- --pubkey DezXAZ...
1105+ DezXAZ... \
1106+ --snapshot-dir /path/to/snapshot
11081107
11091108# Expected output:
11101109# 🔍 Account Found
@@ -1131,7 +1130,7 @@ osvm snapshot read \
11311130
11321131# Search by data size
11331132osvm snapshot read \
1134- --min-data -size 1000000 \
1133+ --filter-min -size 1000000 \
11351134 --limit 50
11361135```
11371136
@@ -1140,8 +1139,8 @@ osvm snapshot read \
11401139``` bash
11411140# Compare two snapshots
11421141osvm snapshot compare \
1143- --snapshot-dir /path/to/snapshot1 \
1144- --other /path/to/snapshot2
1142+ /path/to/snapshot1 \
1143+ /path/to/snapshot2
11451144
11461145# Expected output:
11471146# 📊 Snapshot Comparison
@@ -1171,50 +1170,18 @@ osvm snapshot compare \
11711170# 1. 2aB3c...xyz789: -15,000 SOL
11721171# 2. 4dE5f...uvw456: -12,000 SOL
11731172
1174- # Compare with detailed diff
1173+ # Compare with JSON output
11751174osvm snapshot compare \
1176- --snapshot-dir /path/to/snapshot1 \
1177- --other /path/to/snapshot2 \
1178- --detailed \
1179- --output comparison.json
1175+ /path/to/snapshot1 \
1176+ /path/to/snapshot2 \
1177+ --json > comparison.json
11801178```
11811179
11821180#### Snapshot Validation
11831181
11841182``` bash
11851183# Validate snapshot integrity
11861184osvm snapshot validate --snapshot-dir /path/to/snapshot
1187-
1188- # Expected output:
1189- # ✅ Snapshot Validation
1190- # =====================
1191- #
1192- # Structure Check:
1193- # ✅ Directory exists
1194- # ✅ Metadata file present
1195- # ✅ Account files readable
1196- #
1197- # Content Validation:
1198- # ✅ Successfully parsed: 1,234,567/1,234,567 accounts (100%)
1199- # ⚠️ Zero-balance with data: 1,234 accounts
1200- # ✅ Balance validation: All accounts valid
1201- # ✅ Owner validation: All owners valid
1202- #
1203- # Integrity Check:
1204- # ✅ No corruption detected
1205- # ✅ All checksums valid
1206- #
1207- # Warnings:
1208- # - Found 1,234 zero-balance accounts with non-zero data
1209- # (This is normal for rent-exempt accounts)
1210- #
1211- # Summary:
1212- # ✅ Snapshot is valid and healthy
1213-
1214- # Validate with auto-repair
1215- osvm snapshot validate \
1216- --snapshot-dir /path/to/snapshot \
1217- --auto-repair
12181185```
12191186
12201187### CI/CD Integration Examples
0 commit comments