BL-33: On-chain deployment drift check — verify foundry/deployments/<network>.json still matches the chain
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python, solidity
- Ambito
- backend, blockchain
Direzione di ricerca
Read foundry/deployments/<network>.json, dincli/cli/system.py around import_deployments, and Developer/BACK_LOG.md BL-33 to understand the deployment records. Then inspect the Foundry scripts and contract interfaces for the listed proxy slots, ownership, wiring, and slasher checks. Done means a read-only verifier reports expected and actual values for each recorded contract and exits non-zero on any drift.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Nothing currently verifies that foundry/deployments/<network>.json (and the din_info that dincli system import-deployments writes) still matches what is actually deployed. A fresh clone, a failed upgrade, or a manual intervention can leave the recorded addresses and the chain out of sync with no visible signal.
Proposal
A read-only check — either a forge script (script/VerifyDeployment.s.sol) or a new dincli system verify-deployment subcommand — that for each contract recorded in the deployments JSON reports OK or DRIFT with expected vs. actual values for:
- Proxy implementation slot — read EIP-1967
bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)and compare against the recorded implementation address. - Proxy admin slot — read EIP-1967
bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1)and compare against the recordedproxyAdmin*address. - Runtime code hash —
keccak256(extcode(implementation))vs.keccak256of the currentforge buildartifact's deployedBytecode (immutables masked out viaforge inspect --json). - Owner / DIN-Representative addresses — call
owner()on each ownable contract and compare. - Wiring —
DinCoordinator↔DinToken/DinValidatorStake/DinModelRegistry/ fee router / treasury links, and slasher authorizations onDinValidatorStake.
Exit non-zero on any DRIFT row.
When to run
- Before every DevNet 3.0 deploy.
- After every
UpgradePlatform.s.solrun. - As an optional CI step on pushes that touch
foundry/script/.
Limitations
This check only covers what the deployments JSON records. A clean run does not prove nothing else was deployed or authorized outside that file.
References
Developer/BACK_LOG.mdBL-33foundry/deployments/(network JSON files)dincli/cli/system.pyimport_deployments— the import side that reads the same JSON- Terraform state-vs-live drift pattern (
Osomudeya/devops-scripting-labs 03-drift-detection, reviewed 2026-10-02)
- Lingua principale
- Python
- Stelle
- 4
- Fork
- 7
- Merge medio
- 3g 4h
- PR unite (30g)
- 34
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di InfiniteZeroFoundation/DevNet
-
ROADMAP.md: refresh "What is still open for P3" (several items were fixed in October)Forse già presa @umermjd11 l’ha presa 2 giorni fa. Apertadocumentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
InfiniteZeroFoundation/DevNet#285 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Update the 25 translated organisation READMEs to match the English versionForse già presa @mrCabez l’ha presa oggi. Apertagood first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
InfiniteZeroFoundation/DevNet#277 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
InfiniteZeroFoundation/DevNet#266 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
InfiniteZeroFoundation/DevNet#299 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Long run
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
InfiniteZeroFoundation/DevNet#298 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di InfiniteZeroFoundation/DevNet
Issue simili
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Git-Hospital/githealthcheck#61 ·
I maintainer di solito rispondono entro 1 giorno
-
changelog investigate
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
ramnes/notion-sdk-py#433 ·
-
Partial method descriptors raise on class accessForse già presa @Gambit-Checkmate l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 19 giorni
-
docs pkg:core
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
pydantic/pydantic-ai#11929 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
intake/intake-esm#789 ·