genesis: initial 108 atoms go to temple P2SH - #157
Conversation
Batons still land on the genesis address so handoff to the PoW covenant works.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe genesis flow now separates the initial mint destination from mint batons. The WLotus token creation script sends the initial mint to the temple P2SH and records that destination in deployment metadata. ChangesGenesis mint routing
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant createWlotusToken
participant buildAlpGenesisAction
participant TempleP2SH
participant GenesisWallet
createWlotusToken->>buildAlpGenesisAction: provide templeP2SH as initialMintScript
buildAlpGenesisAction->>TempleP2SH: direct initial mint
buildAlpGenesisAction->>GenesisWallet: direct mint batons through batonScript
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
At genesis, the initial fungible mint (108) is sent to the temple P2SH, not the genesis wallet.
TEMPLE_ADDRESS)Why
Premine should not sit on
GENESIS_SK. Temple is the treasury sink (same address remints already pay the 6-atom tax to).Implementation
broadcastAlpGenesis/buildAlpGenesisAction: optionalinitialMintScriptcreate-wlotus-token.ts: passesScript.p2sh(temple.scriptHash)initialMintAddressDeploy note
Merge before the next
create-dryrun-wlotus/ prod genesis.Summary by CodeRabbit