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: src/ci-cd/github-actions.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ Then, locate the "Management" section, and click on "Caches". You will see a lis
92
92
93
93
#### Fuzzing
94
94
95
-
Note that if you are fuzzing in your fork tests, the RPC cache strategy above will not work unless you set a [fuzz seed](https://book.getfoundry.sh/reference/config/testing#seed). You might also want to reduce your number of RPC calls by using [Multicall](https://github.com/mds1/multicall).
95
+
Note that if you are fuzzing in your fork tests, the RPC cache strategy above will not work unless you set a [fuzz seed](https://paritytech.github.io/foundry-book-polkadot/reference/config/testing#seed). You might also want to reduce your number of RPC calls by using [Multicall](https://github.com/mds1/multicall).
Foundry supports compiling and deploying Solidity contracts to `Asset-Hub Westend` network on Polkadot using the `resolc` compiler.
4
+
5
+
### 1. Compilation
6
+
7
+
You can install Resolc by following the instructions [here](https://contracts.polkadot.io/revive_compiler/installation) or [here](https://github.com/paritytech/rvm-rs). If you have `resolc` available in your PATH, foundry will automatically use it.
8
+
9
+
Otherwise, you can set the path to `resolc` in your `foundry.toml` by adding the following:
10
+
```toml
11
+
[profile.default.resolc]
12
+
resolc_compile = true
13
+
resolc = "path/to/resolc"
14
+
```
15
+
16
+
`resolc` config value supports
17
+
- valid values follow the SemVer format `x.y.z-dev.n`, `resolc:x.y.z-dev.n`
18
+
- path `path/to/resolc`.
19
+
20
+
### 3. Deploying
21
+
22
+
You can deploy Vyper contracts via `forge create` command:
23
+
```bash
24
+
forge create --resolc --legacy --broadcast --rpc-url $RPC_URL --private-key $PRIVATE_KEY<path to the contract> --constructor-args '1'
Copy file name to clipboardExpand all lines: src/config/static-analyzers.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ To run Slither on a single file, use this command:
24
24
slither src/Contract.sol
25
25
```
26
26
27
-
Note, this requires configuring the [solc version in the foundry config file](https://book.getfoundry.sh/reference/config/solidity-compiler#solc_version).
27
+
Note, this requires configuring the [solc version in the foundry config file](https://paritytech.github.io/foundry-book-polkadot/reference/config/solidity-compiler#solc_version).
28
28
29
29
You do not need to provide remappings via the `solc_remaps` option as Slither will automatically detect remappings in a Foundry project. Slither will invoke `forge` to perform the build.
Copy file name to clipboardExpand all lines: src/getting-started/installation.md
+18-16
Original file line number
Diff line number
Diff line change
@@ -4,40 +4,46 @@ If you encounter any issues during installation, refer to the [FAQ](../faq.md) f
4
4
5
5
### Precompiled Binaries
6
6
7
-
Precompiled binaries can be downloaded from the [GitHub releases page](https://github.com/foundry-rs/foundry/releases). For easier management, we recommend using [Foundryup](#using-foundryup).
7
+
Precompiled binaries can be downloaded from the [GitHub releases page](https://github.com/paritytech/foundry-polkadot/releases). For easier management, we recommend using [Foundryup](#using-foundryup).
8
8
9
9
### Using Foundryup
10
10
11
-
Foundryup is the official installer for the Foundry toolchain. You can learn more about it [here](https://github.com/foundry-rs/foundry/blob/master/foundryup/README.md).
11
+
Foundryup is the official installer for the Foundry toolchain. You can learn more about it [here](https://github.com/paritytech/foundry-polkadot/blob/master/foundryup/README.md).
12
12
13
13
To install Foundryup, open your terminal and run the following command:
This will install Foundryup. Simply follow the on-screen instructions, and the `foundryup` command will become available in your CLI.
20
20
21
-
Running `foundryup` will automatically install the latest stable version of the [precompiled binaries](#precompiled-binaries): `forge`, `cast`, `anvil`, and `chisel`. If you wish to use the latest `nightly` build run `foundryup --install nightly`. For additional options, such as installing a specific version or commit, run `foundryup --help`.
21
+
Running `foundryup` will automatically install the latest stable version of the [precompiled binaries](#precompiled-binaries): `forge`, `cast`. If you wish to use the latest `nightly` build run `foundryup --install nightly`. For additional options, such as installing a specific version or commit, run `foundryup --help`.
22
22
23
23
> ℹ️ **Note**
24
24
> If you're using Windows, you'll need to install and use [Git BASH](https://gitforwindows.org/) or [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) as your terminal, since Foundryup currently doesn't support Powershell or Command Prompt (Cmd).
25
25
26
+
#### Installing Paritytech fork of foundry
27
+
28
+
```
29
+
foundryup --nightly
30
+
```
31
+
26
32
#### Verify integrity and provenance of binaries
27
33
28
34
Foundry binaries are attested by using [GitHub artifact attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds). It is strongly recommended to verify the binaries installed using `foundryup` in order to check that they were built and distributed from Foundry repository.
29
35
For example, `forge` binary integrity and provenance can be verified by running:
For instructions on setting up Foundry in a CI pipeline, refer to the [foundry-rs/foundry-toolchain](https://github.com/foundry-rs/foundry-toolchain) GitHub Action.
92
94
93
-
### Using Foundry with Docker
95
+
<!--### Using Foundry with Docker
94
96
95
97
Foundry can also be run inside a Docker container. If you don’t have Docker installed, you can download it from [Docker's website](https://docs.docker.com/get-docker/).
96
98
@@ -109,4 +111,4 @@ docker build -t foundry .
109
111
For examples and guides on using this image, refer to the [Docker guide](../guides/foundry-in-docker).
110
112
111
113
> ℹ️ **Note**
112
-
> Some systems, including those with M1 chips, may experience issues when building the Docker image locally. This is a known issue.
114
+
> Some systems, including those with M1 chips, may experience issues when building the Docker image locally. This is a known issue.-->
0 commit comments