You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop/smart-contracts/dev-environments/foundry.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ description: Learn to install, configure, and use foundry-polkadot for smart con
10
10
11
11
## Overview
12
12
13
-
Foundry is a fast, modular, and extensible toolkit for Ethereum application development, written in Rust. It provides a suite of command-line tools, such as `forge` for compiling, testing, and deploying smart contracts, and `cast` for interacting with blockchains.
13
+
Foundry is a fast, modular, and extensible toolkit for Ethereum application development written in Rust. It provides a suite of command-line tools, including `forge` for compiling, testing, and deploying smart contracts and `cast` for interacting with blockchains.
14
14
15
-
[`foundry-polkadot`](https://github.com/paritytech/foundry-polkadot/){target=\_blank} is an adaptation specifically engineered for the Polkadot Hub, it's tailored for developers already familiar with Foundry who are seeking to leverage its capabilities within the Polkadot ecosystem. Additionally, this guide offers detailed information on the `forge` and `cast` commands supported within `foundry-polkadot`, complete with simple, runnable examples for quick reference.
15
+
[`foundry-polkadot`](https://github.com/paritytech/foundry-polkadot/){target=\_blank} is an adaptation explicitly engineered for the Polkadot Hub, tailored for developers already familiar with Foundry who seek to leverage its capabilities within the Polkadot ecosystem. Additionally, this guide offers detailed information on the `forge` and `cast` commands supported within `foundry-polkadot`, complete with simple, runnable examples for quick reference.
16
16
17
17
## Installation
18
18
@@ -44,7 +44,7 @@ A core divergence lies in the underlying Solidity compiler.
44
44
forge build --resolc
45
45
```
46
46
47
-
This instructs Forge to use `resolc` instead of `solc`, generating bytecode compatible with PolkaVM.
47
+
This command instructs Forge to use `resolc` instead of `solc`, generating bytecode compatible with PolkaVM.
48
48
49
49
- **Configuration File**: Alternatively, you can configure `resolc` usage in the `foundry.toml` file by adding:
50
50
@@ -67,7 +67,7 @@ Not all functionalities from the original Foundry are present or behave identica
67
67
- **Currently Unsupported**:
68
68
- Compilation of Yul code is not yet supported.
69
69
- Support for factory contracts deployment is a known issue that is currently unresolved.
70
-
- **Broader Feature Limitations**: Integration with `Anvil` and `Chisel` (Foundry's local blockchain and EVM toolkit, respectively) is not available. This directly impacts the support for several key commands, including `forge test` for running tests, `forge snapshot` for creating blockchain state snapshots, and `forge script` for complex deployment and interaction scripts.
70
+
- **Broader Feature Limitations**: Integration with `Anvil` and `Chisel` (Foundry's local blockchain and EVM toolkit, respectively) is not available. This limitation directly impacts the support for several key commands, including `forge test` for running tests, `forge snapshot` for creating blockchain state snapshots, and `forge script` for complex deployment and interaction scripts.
71
71
- **Modified Feature**: The most notable modification is in the **compilation output**. When ``resolc`` is employed, the resulting bytecode will fundamentally differ from that generated by ``solc``, reflecting PolkaVM's distinct architectural requirements.
72
72
73
73
## Set up a Project
@@ -79,7 +79,7 @@ forge init my-polkadot-project
79
79
cd my-polkadot-project
80
80
```
81
81
82
-
This creates a complete project structure with the following components:
82
+
This commandcreates a complete project structure with the following components:
83
83
84
84
- **`src/`** - Contains the Solidity smart contracts (includes a sample `Counter.sol` contract by default)
85
85
- **`lib/`** - Houses external dependencies and libraries (`forge-std` testing library is included)
@@ -253,7 +253,7 @@ This section provides a detailed breakdown of the `forge` and `cast` commands su
253
253
***Command**: `forge tree`
254
254
***Description**: Displays the dependency tree of your Solidity contracts.
255
255
256
-
!!!warning "Not Working Commands"
256
+
!!!warning "Non-working Commands"
257
257
258
258
Consider that some foundry commands are not yet supported in`foundry-polkadot`:
259
259
@@ -486,7 +486,7 @@ This section provides a detailed breakdown of the `forge` and `cast` commands su
486
486
***Command**: `cast wallet address [OPTIONS]`
487
487
***Description**: Derives and displays the Ethereum address from a private key or mnemonic (if provided).
488
488
489
-
!!!warning "Not Working Commands"
489
+
!!!warning "Non-working Commands"
490
490
491
491
Consider that some foundry commands are not yet supported in`foundry-polkadot`:
0 commit comments