Skip to main content
After a sale’s commitment phase closes, you’ll need to finalize allocations and process refunds for participants. We provide TypeScript scripts to manage these operations.

Available Scripts

ScriptPurpose
commitment-data-csvExport all commitment data from the sale contract to a CSV
set-allocationsSet accepted allocation amounts for each committer
process-refundsRefund the difference between committed and accepted amounts

Typical Workflow

  1. Export commitments from the contract to analyze bids
  2. Prepare allocations by creating a CSV with accepted amounts
  3. Validate allocations using dry-run mode
  4. Submit allocations to the contract
  5. Process refunds for any excess committed amounts

Detailed Documentation

For complete usage instructions, CSV formats, and all available options, see the Contract Scripts README.