This repo demonstrates how to onboard data from Avalanche to Filecoin via a cross-chain data bridge protocol, which processes storage proposals on Filecoin. It could potentially process the data storage coming from multichain, such as Linea, Base, Arbitrum, etc.
The demo consists of the following components:
- Demo UI: upload file via onramp contract
- Onramp Contracts: accepting storage requests & posdi proof verification.
- The onramp contracts were deployed on Filecoin Calibration & Avalanche Fuji testnet. You can find the contract info in contractDetails.tsx.
- You can also deploy your version of onramp contracts.
- xClientClient: listen to the storage requests from smart contract, aggregate small size of data and send storage deal proposal to SP on Filecoin.
Make sure you have the following installed:
- Node.js
First, clone the repository:
git clone https://github.com/FIL-Builders/dataBridgeDemo.git
cd dataBridgeDemo
Configure Environment Variables
Copy .env.sample
to .env
Set the JWT from your PINATA API INFO:
NEXT_PUBLIC_PINATA_JWT=
Install all dependencies:
npm install
Then, you can run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
