Problem
Sui PTBs are limited to 1024 commands per transaction. When applying policies in bulk via set_policy, each assembly needs ~(2 × rule_count + 1) commands. For a tribe leader managing 100+ assemblies with 20+ rules each, this exceeds the limit.
Example
- 30 assemblies × 20 rules = ~1,230 commands → exceeds 1024 limit
- 50 assemblies × 10 rules = ~1,050 commands → exceeds limit
Solution
The DApp should automatically split large "Apply" operations into multiple transactions:
- Calculate total command count before building the PTB
- If it exceeds ~900 commands (safety margin), split assemblies into batches
- Show progress: "Applying batch 1/3... sign transaction"
- Track which batches succeeded/failed and allow retry
Context
Real-world scale: a single player can own 30+ assemblies. A tribe leader managing infrastructure for 300 members will have significantly more. The PTB limit will be hit in production use.
This is not needed for the hackathon demo but is required for production.
🤖 Generated with Claude Code
Problem
Sui PTBs are limited to 1024 commands per transaction. When applying policies in bulk via
set_policy, each assembly needs ~(2 × rule_count + 1) commands. For a tribe leader managing 100+ assemblies with 20+ rules each, this exceeds the limit.Example
Solution
The DApp should automatically split large "Apply" operations into multiple transactions:
Context
Real-world scale: a single player can own 30+ assemblies. A tribe leader managing infrastructure for 300 members will have significantly more. The PTB limit will be hit in production use.
This is not needed for the hackathon demo but is required for production.
🤖 Generated with Claude Code