CrediFlow transforms supply chain finance by eliminating inefficiencies, enhancing transparency, and building trust.It streamlines buyer-supplier interactions, secures digital payments, and ensures seamless document management with decentralized storage. CrediFlow brings speed, security, and simplicity to supply chain operations.
-
🏗️ Direct Buyer-Supplier Interaction
Eliminate intermediaries by enabling direct communication between buyers and suppliers, streamlining processes, and reducing third-party reliance. -
⚙️ Comprehensive Functionality
Supports a variety of supply chain use cases, including:- 📑 Purchase ordering
- 💸 Dynamic discounting
- 🌍 Cross-border trading
- 🛡️ Supplier risk assessment
-
🔒 Secure Digital Payments
Implements an escrow system to ensure safe and reliable cryptocurrency transactions, mitigating fraud risks. -
⚡ Fast and Cost-Effective Transactions
Facilitates quick and low-cost digital payments using cryptocurrencies or digital tokens. -
📂 Decentralized Document Storage
Leverages IPFS services like lighthouse.storage to securely store and share documents, ensuring data integrity and accessibility.
Let us consider an example use case here, PURCHASE ORDERING
Ensure you have the following installed:
- Node.js (v16 or higher)
- npm package manager
- A compatible crypto wallet (e.g., MetaMask/Phantom)
Clone the repository:
git clone https://github.com/Aswinr24/CrediFlow.git
Navigate to the project directory:
cd CrediFlow
Install dependencies:
npm i
Create a .env file in the root directory and configure the following variables:
NEXT_PUBLIC_CONTRACT1_ADDRESS=<deployed-contract1-address>
NEXT_PUBLIC_CONTRACT2_ADDRESS=<deployed-contract2-address>
NEXT_PUBLIC_SERVER_URL=<url-of-backend-server-running-app.js>
NEXT_PUBLIC_PROJECT_ID=<wallet-connect-project-id>
LIGHTHOUSE_API_KEY=<your-lighthouse-api-key>
Start the development server for UI:
npm run dev
Start the backend server for IPFS Storage APIs:
node app.js
Build the application for production:
npm run build
npm start
Navigate to the Contracts Directory
cd Crediflow_contracts
Install Dependencies for Hardhat
npm i
Create a .env file in the contracts directory and configure the following variables:
API_KEY=<YOUR_ALCHEMY_API_KEY>
PRIVATE_KEY=<YOUR_WALLET_PRIVATE_KEY>
Compile the smart contracts using Hardhat:
npx hardhat compile
Deploy the contracts to the Polygon zkEVM cardona test network:
npx hardhat run scripts/deploy.js --network zkEVMTestnet
After deploying the smart contracts, note the contract addresses and update the NEXT_PUBLIC_SMART_CONTRACT1_ADDRESS
and NEXT_PUBLIC_CONTRACT2_ADDRESS
variables in the .env file of the UI directory.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or clone the repository and submit a pull request on GitHub.
For detailed guidelines on how to contribute, please refer to the CONTRIBUTING.md file
This project is licensed under the MIT License. See LICENSE for more details