Skip to content

Crowd-funded dataset preservation (e.g. everyone could fund storing societally important data like crime statistics or environmental warming)

Notifications You must be signed in to change notification settings

nandit123/FVM-Data-Preserve

Repository files navigation

FVM Data Preserve

Cloning the Repo

Open up your terminal (or command prompt) and navigate to a directory you would like to store this code on. Once there type in the following command:

git clone https://github.com/filecoin-project/FEVM-Hardhat-Kit.git
cd FEVM-hardhat-kit
yarn install

This will clone the hardhat kit onto your computer, switch directories into the newly installed kit, and install the dependencies the kit needs to work.

Get a Private Key

You can get a private key from a wallet provider such as Metamask.

Add your Private Key as an Environment Variable

Add your private key as an environment variable by running this command:

export PRIVATE_KEY='abcdef'


If you use a .env file, don't commit and push any changes to .env files that may contain sensitive information, such as a private key! If this information reaches a public GitHub repository, someone can use it to check if you have any Mainnet funds in that wallet address, and steal them!

Get the Deployer Address

Run this command:

yarn hardhat get-address

The f4address is the filecoin representation of your Ethereum address. This will be needed for the faucet in the next step.

The Ethereum address will be used otherwise.

Fund the Deployer Address

Go to the Wallaby faucet, and paste in the f4 address we copied in the previous step. This will send some wallaby testnet FIL to the account.

Deploy the ProjectFactory Contract

Type in the following command in the terminal:

yarn hardhat deploy

Live Contract on Wallaby Contract

ProjectFactory deployed on FEVM - https://explorer.glif.io/tx/bafy2bzacedzsa6yvi7ffkfeq6zyhnrsr52y6gmxv3opwpzqpg37icuh5lbi2m/?network=wallabynet

Deployer F4 Address: f410frixunsw5uwxpubyg6n7plwmdijiegpc2c4gr7wa

Ethereum Address: 0x8a2F46CADDA5aeFA0706F37EF5D9834250433c5A

yarn hardhat deploy

This will compile the contract and deploy it to the Wallaby network automatically!

About

Crowd-funded dataset preservation (e.g. everyone could fund storing societally important data like crime statistics or environmental warming)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published