Skip to content

Latest commit

 

History

History
83 lines (53 loc) · 2.25 KB

README.md

File metadata and controls

83 lines (53 loc) · 2.25 KB

FVM Cross-Chain Deals Starter Kit by Eastore

This starter kit is designed to help developers make cross-chain deals in FVM with the help of Axelar contracts. This would enable devs to interact with Deal Client contract on Filecoin from different chains and accesss the filecoin native features like storage, miner info, etc. from other chains.

Built With

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Node.js and npm.
  • You have a basic understanding of Javascript and Solidity.

Installation

To install the FVM Cross-Chain Deals Starter Kit, follow these steps:

  1. Clone the repository:
git clone https://github.com/eastore-project/Eastore-Contracts.git
  1. Navigate to the project directory:
cd Eastore-Contracts
  1. Install the dependencies:
npm install

Usage

So as to use Eastore-Contracts, follow these steps:

  1. Build the contracts:
npm run build
  1. Deploy the parent Deal Client contract on Filecoin:
npm run deploy deal-client-contract testnet Filecoin
  1. Deploy the child contract that makes cross-chain calls to parent contract on Polygon or any other supported chain (you can view the supported chains here):
npm run deploy call-fvm testnet Polygon
  1. Execute the cross-chain call from child contract to parent contract:
 npm run execute call-fvm testnet Polygon Filecoin

Currently, demo deal params to make cross-chain deal are available here. You can obtain deal params for your files here

Contributing

We welcome contributions from the community. To contribute:

  1. Fork the project.
  2. Create a new branch.
  3. Make your changes and write tests when practical.
  4. Commit your changes to the new branch.
  5. Submit a pull request.

License

This project uses the following license: GNU General Public License v3.0.