To install dependencies:
bun installTo run:
bun run index.tsbun --env-file=../client/.env.development index.ts
bun --env-file=../client/.env.production index.ts
You can batch all configuration transactions into a single multicall and optionally force specific entrypoints to execute immediately:
# Batch all config txs into one multicall
CONFIG_BATCH=1 bun run index.ts
# Batch all, but execute selected entrypoints immediately
CONFIG_BATCH=1 CONFIG_IMMEDIATE_ENTRYPOINTS="set_world_config,set_blitz_previous_game" bun run index.tsNotes:
- When batching is enabled, inter-call sleeps are skipped for speed.
- Immediate entrypoints run as normal transactions before the final multicall flush.
Programmatic control inside scripts:
- Import
markImmediateEntrypointsfromconfig/deployer/tx-batcherand call it while batching is enabled to toggle entrypoints to execute immediately.
import { withBatching, markImmediateEntrypoints } from "./tx-batcher";
await withBatching(provider, account, async () => {
// Run your config flow here
markImmediateEntrypoints(provider, ["set_world_config"]);
await config.setupAll(account, provider);
});