sui client publish --json output, extracts the new package id + all shared object ids, and writes them into .env. Skips already-set values unless --force.
Usage
What it reads
digest. The publish tx digest.objectChanges. Looks forpublishedwithpackageId, andcreatedwithobjectTypematching our shared objects.
What it writes
Republish recipe (for future Move-source changes)
- Reset
Published.toml. Newer Sui CLI gates re-publish on this. sui client publish --json --gas-budget 200000000 > /tmp/dp-publish.json.pnpm env:from-publish /tmp/dp-publish.json --force.- Re-register markets, re-create the AccessPolicy, re-create dark-pool vault (since the package id changed):
- Restart indexer (so its package-scoped event streams attach to the new package).