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.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
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.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“ton-state-model”。 Compare the supplied storage layout with the contract's default state and manual decoder.
预期结果:
- 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.
正在使用“ton-state-model”。 Review an upgrade that adds a fee field to persistent storage.
预期结果:
- 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.
安全审计
中风险The 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.
已确认安全问题 (1)
风险因素
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/flint-research-ton-state-model/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/flint-research-ton-state-model?utm_source=security_passport_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>嵌入卡片
<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>学术引用 (APA · BibTeX · CFF)
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/1BibTeX 引用
@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"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
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.
试试这些提示
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.
最佳实践
- 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.
避免
- 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.
常见问题
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?
开发者详情
许可证
未知
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
d715043e3196bdd213a9eb9e5f78632e50554733
维护新鲜度
2026/11/29
使用量
0 次下载 · 0 次浏览
文件结构
📄 SKILL.md