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.
Before you begin, ensure you have met the following requirements:
To install the FVM Cross-Chain Deals Starter Kit, follow these steps:
- Clone the repository:
git clone https://github.com/eastore-project/Eastore-Contracts.git
- Navigate to the project directory:
cd Eastore-Contracts
- Install the dependencies:
npm install
So as to use Eastore-Contracts, follow these steps:
- Build the contracts:
npm run build
- Deploy the parent Deal Client contract on Filecoin:
npm run deploy deal-client-contract testnet Filecoin
- 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
- 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
We welcome contributions from the community. To contribute:
- Fork the project.
- Create a new branch.
- Make your changes and write tests when practical.
- Commit your changes to the new branch.
- Submit a pull request.
This project uses the following license: GNU General Public License v3.0.