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
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,14 @@ description: Learn to install, configure, and use foundry-polkadot for smart con
5
5
6
6
# Foundry
7
7
8
+
!!! warning
9
+
Consider that features like Anvil (Foundry's local blockchain) and `forge test` (for running Solidity tests) are not yet supported in `foundry-polkadot`.
10
+
11
+
## Introduction
12
+
8
13
[`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.
9
14
10
-
###Installation
15
+
## Installation
11
16
12
17
The installation process is tailored for the Polkadot variant:
13
18
@@ -25,7 +30,7 @@ The installation process is tailored for the Polkadot variant:
25
30
26
31
This command will install the `forge` and `cast` binaries, which are explained below. Windows users must use a Unix-like terminal environment such as Git BASH or Windows Subsystem for Linux (WSL), as PowerShell and Command Prompt are not currently supported by `foundryup`.
27
32
28
-
### Compiler Integration
33
+
## Compiler Integration
29
34
30
35
A core divergence lies in the underlying Solidity compiler.
31
36
@@ -49,11 +54,11 @@ A core divergence lies in the underlying Solidity compiler.
49
54
Setting `resolc_compile = false` reverts to using `solc`, ensuring compatibility with Ethereum projects. By default, `foundry-polkadot` uses `solc` unless `resolc` is explicitly enabled. `resolc` also exposes specific options for fine-tuning the compilation process, such as `--use-resolc <RESOLC_VERSION>` for specifying a compiler version or path, `-O, --resolc-optimizer-mode <LEVEL>` for setting optimization levels, and `--heap-size <SIZE>` and `--stack-size <SIZE>` for configuring contract memory.
50
55
51
56
52
-
### Command-Line Interface (CLI)
57
+
## Command-Line Interface (CLI)
53
58
54
59
`foundry-polkadot` preserves the familiar `forge` and `cast` subcommand structure. However, it's crucial to note that commands which involve compilation (such as `create`, `bind`, `build`, and `inspect`) will yield different output when `resolc` is utilized, as the generated bytecode is specifically designed for PolkaVM rather than the EVM.
55
60
56
-
### Unsupported or Modified Features
61
+
## Unsupported or Modified Features
57
62
58
63
Not all functionalities from the original Foundry are present or behave identically in`foundry-polkadot`:
Copy file name to clipboardExpand all lines: llms.txt
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6985,9 +6985,14 @@ description: Learn to install, configure, and use foundry-polkadot for smart con
6985
6985
6986
6986
# Foundry
6987
6987
6988
+
!!! warning
6989
+
Consider that features like Anvil (Foundry's local blockchain) and `forge test` (for running Solidity tests) are not yet supported in `foundry-polkadot`.
6990
+
6991
+
## Introduction
6992
+
6988
6993
[`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.
6989
6994
6990
-
### Installation
6995
+
## Installation
6991
6996
6992
6997
The installation process is tailored for the Polkadot variant:
6993
6998
@@ -7005,7 +7010,7 @@ The installation process is tailored for the Polkadot variant:
7005
7010
7006
7011
This command will install the `forge` and `cast` binaries, which are explained below. Windows users must use a Unix-like terminal environment such as Git BASH or Windows Subsystem for Linux (WSL), as PowerShell and Command Prompt are not currently supported by `foundryup`.
7007
7012
7008
-
### Compiler Integration
7013
+
## Compiler Integration
7009
7014
7010
7015
A core divergence lies in the underlying Solidity compiler.
7011
7016
@@ -7029,11 +7034,11 @@ A core divergence lies in the underlying Solidity compiler.
7029
7034
Setting `resolc_compile = false` reverts to using `solc`, ensuring compatibility with Ethereum projects. By default, `foundry-polkadot` uses `solc` unless `resolc` is explicitly enabled. `resolc` also exposes specific options for fine-tuning the compilation process, such as `--use-resolc <RESOLC_VERSION>` for specifying a compiler version or path, `-O, --resolc-optimizer-mode <LEVEL>` for setting optimization levels, and `--heap-size <SIZE>` and `--stack-size <SIZE>` for configuring contract memory.
7030
7035
7031
7036
7032
-
### Command-Line Interface (CLI)
7037
+
## Command-Line Interface (CLI)
7033
7038
7034
7039
`foundry-polkadot` preserves the familiar `forge` and `cast` subcommand structure. However, it's crucial to note that commands which involve compilation (such as `create`, `bind`, `build`, and `inspect`) will yield different output when `resolc` is utilized, as the generated bytecode is specifically designed for PolkaVM rather than the EVM.
7035
7040
7036
-
### Unsupported or Modified Features
7041
+
## Unsupported or Modified Features
7037
7042
7038
7043
Not all functionalities from the original Foundry are present or behave identically in `foundry-polkadot`:
0 commit comments