ton-state-model
Review TON Contract State and Upgrades
TON contract reviews can miss differences between declared storage and the way a contract encodes or updates it. This skill guides you through mapping storage, checking who can change state, and proposing regression assertions.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
Review the Skillstore skill "ton-state-model" from https://skillstore.io/skills/flint-research-ton-state-model.md and its manifest at https://skillstore.io/api/skills/flint-research-ton-state-model/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "ton-state-model". Compare the supplied storage layout with the contract's default state and manual decoder.
Resultado esperado:
- The default state initializes the replay counter to zero.
- The manual decoder reads the counter after the owner field, matching the supplied layout.
- No message tag was supplied, so message encoding remains unverified.
Usando "ton-state-model". Review an upgrade that adds a fee field to persistent storage.
Resultado esperado:
- The fee field needs an explicit default for records written before the upgrade.
- Add assertions that migration preserves the owner and replay counter.
- Add an assertion that an unauthorized migration leaves persistent state unchanged.
Auditoria de segurança
Risco MédioThe backticks mark a subcommand in Markdown, the URL is an attribution link, and the fixed parent path is not input-driven traversal. The workflow still asks users to run a Python CLI outside the audited package. No evidence found of malicious behavior in the reviewed file.
Preocupações de segurança confirmadas (1)
Fatores de risco
⚙️ Comandos externos (1)
🌐 Acesso à rede (1)
📁 Acesso ao sistema de arquivos (1)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
https://skillstore.io/skills/flint-research-ton-state-model/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/flint-research-ton-state-model?utm_source=security_passport_badge)Badge HTML
<a href="https://skillstore.io/skills/flint-research-ton-state-model?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flint-research-ton-state-model/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Cartão incorporável
<iframe src="https://skillstore.io/embed/skills/flint-research-ton-state-model.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
flint-research. (2026). ton-state-model security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flint-research-ton-state-model/audits/1Citação BibTeX
@techreport{flint-research-flint-research-ton-state-model-2026,
author = {flint-research},
title = {ton-state-model security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flint-research-ton-state-model/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "ton-state-model security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "flint-research"
date-released: "2026-11-29"
url: "https://skillstore.io/skills/flint-research-ton-state-model/audits/1"
identifiers:
- type: other
value: "skillstore:flint-research-ton-state-model:audit:1"
description: "Skillstore immutable audit report identifier"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
Document Contract Storage
Map persistent fields, default values, and cell layouts from local source and any supplied ABI records.
Review State Update Authority
Identify who can change persistent state and check how the contract accounts for value when message actions fail or bounce.
Prepare Upgrade Regression Checks
Compare the old and proposed storage layouts, then draft assertions for preserved values and denied transitions.
Teste estes prompts
List the contract's persistent fields and default values from the supplied source. Mark any types or defaults you cannot verify.
Compare the supplied ABI records with the storage readers and writers. List differences in field types, order, or message tags.
Trace persistent writes for the supplied message handlers. Identify who can trigger each write and whether the stated balance invariant holds after failure or bounce.
Compare the old and new storage layouts. Review update authority and replay counter preservation, then propose regression assertions for allowed and denied transitions.
Boas práticas
- Provide local source, expected invariants, and any ABI records or layout descriptions for the revision under review.
- Use only a verified companion CLI and keep the review within the authorized workspace.
- Distinguish source-backed conclusions from assumptions about encoding, authorization, and message behavior.
Evitar
- Treating ABI declarations as proof of how a manual decoder reads storage.
- Checking successful state updates while ignoring action failure and bounce handling.
- Using local source to claim a historical account balance.
Perguntas frequentes
What inputs should I provide?
Can I use this without ABI records?
What does the CLI workflow require?
What does the review produce?
Can this review a storage migration?
Can this reconstruct historical chain balances?
Detalhes do desenvolvedor
Autor
flint-researchLicença
Desconhecido
Revisão da Skillstore
r1
Aviso de versão
O autor não declarou uma versão.
Referência
d715043e3196bdd213a9eb9e5f78632e50554733
Atualidade da manutenção
29/11/2026
Uso
0 downloads · 0 visualizações
Estrutura de arquivos
📄 SKILL.md