foundry README

The project's README from github.com/foundry-rs/foundry. As one markdown file: README.md.

Foundry banner

 

Github Actions Telegram Chat Telegram Support

Install | Docs | Benchmarks | Developer Guidelines | Contributing | Crate Docs


Blazing fast, portable and modular toolkit for Ethereum application development, written in Rust.

Demo

Installation

curl -L https://foundry.paradigm.xyz | bash
foundryup

See the installation guide for more details.

To verify a downloaded release archive or container image, see Verifying Releases.

Getting Started

Initialize a new project, build and test:

forge init counter && cd counter
forge build
forge test

Interact with a live network:

cast block-number --rpc-url https://eth.merkle.io
cast balance vitalik.eth --ether --rpc-url https://eth.merkle.io

Fork mainnet locally:

anvil --fork-url https://eth.merkle.io

Read the Foundry Docs to learn more.

Solidity editor integration

Configure your editor's Solidity language server command as forge lsp. The server is embedded in Forge, so the standalone solar executable is not required. Solar uses foundry.toml, workspace folders, remappings, and evm_version from the project automatically.

Solar's default flycheck runs forge lint --json with the same Forge executable that started the server. Solar's existing initializationOptions.forgePath option overrides that executable.

forge lsp follows Forge's normal environment setup, global-option parsing, and command dispatch. Project dotenv warnings use stderr, leaving stdout reserved for the LSP transport.

Contributing

Contributions are welcome and highly appreciated. To get started, check out the contributing guidelines.

Join our Telegram to chat about the development of Foundry.

Support

Having trouble? Check the Foundry Docs, join the support Telegram, or open an issue.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

foundry (foundry-rs/foundry)

Searching Database…

10.7K ·GitHub
Что это такое?Foundry — это очень быстрый, переносимый и модульный набор инструментов для разработки приложений на Ethereum, написанный на Rust. В него входят четыре утилиты командной строки: Forge, Cast, Anvil и Chisel.
Это один инструмент или целый набор?Набор из четырёх CLI-утилит: Forge собирает, тестирует, фаззит, отлаживает и разворачивает контракты на Solidity; Cast работает с контрактами, транзакциями и данными блокчейна; Anvil — это быстрый локальный узел Ethereum; Chisel — REPL для Solidity.
Как установить его и создать первый проект?Установите через официальный установщик (foundryup) из руководства по установке, затем выполните forge init, чтобы создать каркас проекта, и запустите forge build и forge test для компиляции и тестирования.
Нужно ли что-то ещё установить, чтобы оно заработало?Ничего — он поставляется в виде автономных архивов релизов и Docker-образов, так что не требует никаких дополнительных сред выполнения или языковых стеков.
Он работает на Windows или только на Mac и Linux?Он кроссплатформенный: переносимые бинарники Rust работают на macOS, Linux и Windows, также опубликованы Docker-образы.
Как выглядит типичный цикл разработки?После forge init и forge build/test утилита cast работает с живыми сетями — отправляет транзакции и читает данные блокчейна, а anvil даёт быстрый локальный узел и умеет форкать mainnet, чтобы вы тестировали контракты на реальном состоянии цепи.
Можно ли подключить его к моему редактору?Укажите команду вашего language server для Solidity на 'forge lsp'. Сервер встроен в Forge, автоматически подхватывает foundry.toml, папки рабочего пространства, remappings и версию EVM, а в качестве проверки по умолчанию запускает forge lint --json.
Для чего нужен Chisel?Chisel — это быстрый, практичный и многословный REPL для Solidity — удобный способ экспериментировать с кодом на Solidity без настройки целого проекта.
Он только для Solidity или работает и с Vyper?README сосредоточен на Solidity: Forge, language server Solar и Chisel ориентированы на Solidity. Vyper упоминается только в списке тем репозитория, поэтому поддержку Vyper стоит считать второстепенной.
Creator
foundry-rs
Size
90.1 MB
Stars
10.7K
Age
5y
Commits · 90 Days