Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

filecoin-saturn/fevm-deployment-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fEVM deployment tutorial

This repo contains a simple HelloWorld contract intended for testing the deployment pipeline for the fEVM. We leverage the foundry toolkit. To ascertain the contract is functioning as intended:

forge test --gas-report

You should see the following output:

| src/HelloWorld.sol:HelloWorld contract |                 |     |        |     |         |
|----------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost                        | Deployment Size |     |        |     |         |
| 45499                                  | 258             |     |        |     |         |
| Function Name                          | min             | avg | median | max | # calls |
| sayHelloWorld                          | 444             | 444 | 444    | 444 | 1       |

To deploy the contract we recommend using a ledger with the Ethereum application installed. To activate the address on the specific network you're using, ensure the address has received FIL before and has FIL available to pay for deployment gas costs (either via a facuet for testnets or readl deal FIL for mainnet).

You can then deploy the contract using

forge create HelloWorld --rpc-url=<INSERT NETWORK RPC URL> -l --retries 10

Releases

No releases published

Packages

No packages published