Перейти до основного вмісту

Меню команд

Перейдіть на сторінку або пошукайте в каталозі

ШІ-інструменти та скрипти

Solidity Contract Check

Це оголошення показано мовою оригіналу (англійська).

Check Solidity contracts before you deploy: tx.origin auth, delegatecall to caller addresses, open selfdestruct and initializers, reentrancy, floating pragmas, unchecked calls, weak randomness and missing access control. Not an audit.

$5.00

Що ви отримаєте: 1 файл · 38.73 KB · ZIP

Переглянути варіанти купівлі

Опис товару

One (bool ok, ) = msg.sender.call{value: amount}("") placed before balances[msg.sender] = 0, or one initialize() without the initializer modifier, is enough for someone to drain or take over a contract. This skill finds those and nine other Solidity mistakes before you deploy, and tells you how to fix each one. It is not a substitute for a smart contract audit: use it to catch known mistakes early, before an auditor looks at the code.

Your agent runs a scanner on your .sol files. It skips comments, tests, scripts, mocks and dependencies (node_modules, Foundry lib/, Remix .deps), splits each contract into functions, reads their visibility and modifiers, knows the state variables, and follows parameters into delegatecall. It does not flag ordinary OpenZeppelin patterns: Ownable and AccessControl modifiers, ReentrancyGuard nonReentrant, checks-effects-interactions, SafeERC20, Initializable with initializer, ECDSA.recover and Solidity 0.8 checked math. It never compiles, deploys or runs anything. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach.

What it checks

BLOCK (fix before shipping)

  • SC01: tx.origin used to authorize (require(tx.origin == owner), admins[tx.origin])

  • SC02: delegatecall to an address from the function's parameters or msg.sender, with no access control

  • SC03: selfdestruct that anyone can call

  • SC04: initialize functions without initializer or another guard, and UUPS _authorizeUpgrade without access control

  • SC05: state written after an ETH transfer or low-level call, without nonReentrant (reentrancy)

REVIEW (check before release)

  • SC11: floating pragmas (^0.8.20, >=0.8.0) in files with a deployable contract

  • SC12: ignored results of call, delegatecall, staticcall and send

  • SC13: winners, indexes and outcomes picked from block.prevrandao, block.timestamp or blockhash, also through a local variable (time arithmetic such as % 1 weeks is not reported)

  • SC14: compilers before 0.8.0 without SafeMath (silent overflow)

  • SC15: mint, set..., pause, upgrade, sweep and withdraw-all functions without onlyOwner, onlyRole or a msg.sender check

  • SC16: ecrecover without a check against address(0)

What's included

  • The scanner (Python 3.9+, standard library only)

  • A rules guide with the reason and safer approach for each rule

  • A risky and a safe example Foundry project, and the real report the scanner produces on the risky one

Limits

It reads code as text, not with the Solidity compiler. Inheritance from other files is judged by modifier names, and internal calls, storage pointers, assembly (apart from delegatecall), cross-function and read-only reentrancy, token callbacks, oracle manipulation, front-running and business logic are not checked. It is not a substitute for a smart contract audit. NOT FLAGGED is not a guarantee.

Contents

One ZIP file with 19 files: SKILL.md, the scanner in scripts/ (4 Python files), references/rules.md (every rule with its reason and safer approach), and examples/ (12 example files plus report.md, the real scanner output on the risky example).

How to use: This is an agent skill: a folder with a SKILL.md file and Python scripts that an AI coding agent such as Claude Code, Cursor, or Codex CLI can run. Unzip it into your agent's skills folder (for Claude Code: ~/.claude/skills/), then ask your agent to check your project. The scripts also run on their own with Python 3.9 or newer, with nothing to install. They read your files only: no network access, and nothing is sent anywhere.

Що ви отримаєте

1 файл · 38.73 KB

  • solidity-contract-check-1.0.0.zipZIP · 38.73 KB

Входить до Getly ProОтримати Pro

ЛіцензіяКомерційне використання дозволено
Опубліковано12 лист. 2026 р.
Розмір файлу38.73 KB
Формат файлуZIP
Версіяv1.0

Теги

soliditysmart-contractsethereumsecurityweb3ai agent skill
R
RR HH

Поширені запитання

Чи отримаю я доступ одразу?

Так. Це цифровий товар: ви можете завантажити його одразу після оплати, просто зі своєї бібліотеки.

Чи можна використовувати його в комерційних проєктах?

Так. Комерційне використання дозволено: користуйтеся в особистому бізнесі та в тому, що продаєте. Ви не можете перепродавати чи поширювати сам файл.

Яка у вас політика повернення коштів?

Ви можете запросити повернення коштів протягом 30 дн. Якщо щось не так, подайте запит зі свого замовлення, і команда Getly його розгляне.

Які формати та розміри файлів я отримаю?

Ви завантажите 1 файл - ZIP - загалом 38.73 KB.

Чи отримую я безкоштовні оновлення?

Так: коли продавець випускає нову версію, ви можете повторно завантажити свіжі файли зі своєї бібліотеки безкоштовно. Останні оновлення дивіться в журналі змін.

Ціна

$5.00