feat: smart contract upgrade script + docs update#16
Merged
Conversation
- Rewrite Upgrade.s.sol to only require ROUTER_ADDRESS (resolves all other proxies on-chain via getAddresses) - Handle old Router (5-return) gracefully: auto-deploy EvaluationLedger proxy and wire it to GameEngine + Router when missing - Auto-initialize World Bible if not yet done - Add `just gravity-upgrade` and `just anvil-upgrade` commands - Update CLAUDE.md: add EvaluationLedger, debate/chronicle/world-bible tools, upgrade commands, and proxy address table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- README.md: add EvaluationLedger to architecture, fix Router address, fix post_to_location happiness (+10 -> +5), add debate/chronicle/bible tools, add upgrade commands - docs/state-storage.md: add EvaluationLedger section, update Router to 6 addresses, update architecture diagram - skill.md: fix happiness decay formula, fix post happiness (+10 -> +5), add debate/chronicle/world bible mechanics and tool reference Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade.s.solto only requireROUTER_ADDRESS- resolves all proxy addresses on-chainjust gravity-upgrade/just anvil-upgradecommands to justfileGravity testnet already upgraded successfully with this script - all implementations swapped, EvaluationLedger deployed at
0x0997B2d7c299Ecc7Eaf04f5AF7d2aa842434f5FC.Test plan
just gravity-upgraderan successfully on Gravity testnet🤖 Generated with Claude Code