BL-33: On-chain deployment drift check — verify foundry/deployments/<network>.json still matches the chain
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- python, solidity
- Domínio
- backend, blockchain
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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)
- Linguagem predominante
- Python
- Estrelas
- 4
- Forks
- 7
- Merge médio
- 3d 7h
- PRs com merge (30d)
- 33
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de InfiniteZeroFoundation/DevNet
-
ROADMAP.md: refresh "What is still open for P3" (several items were fixed in October)Talvez já em andamento @umermjd11 assumiu há 5 dias. Abertadocumentation good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
InfiniteZeroFoundation/DevNet#285 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Update the 25 translated organisation READMEs to match the English versionTalvez já em andamento @mrCabez assumiu há 3 dias. Abertagood first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
InfiniteZeroFoundation/DevNet#277 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Update the client-service guide to explain training and uploading separatelyTalvez já em andamento @Santiagocetran assumiu há 2 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
InfiniteZeroFoundation/DevNet#266 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Few questions related to GI2 aggregatorTalvez já em andamento @Abidoyesimze assumiu há 2 dias. Aberta
InfiniteZeroFoundation/DevNet#307 · 1 comentário · 1 reação · 4 responsáveis ·
Mantenedores costumam responder em até 1 dia
-
bug python
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
InfiniteZeroFoundation/DevNet#306 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de InfiniteZeroFoundation/DevNet
Issues semelhantes
-
good first issue test
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
ANCORATE/EncryptHome#8 ·
-
PluginProvider.storeInstance races and clobbers the dedup cache for concurrent loadsTalvez já em andamento @Wilson0511 assumiu hoje. Abertaneeds-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 2 dias
-
Bug: failed Together chat calls do not record operation duration or error.typeTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
community documentation good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100