This is a Next.js project bootstrapped with create-next-app
.
A new and secure way to get paid for freelancing through an agent escrow contract using fully homomorphic encryption (FHE) . Try it out!.
This is an escrow module for freelancer service operated by agents. The sender deposit money for recipient and set agent for the payment. If the sender want to release the payment, then he can ask the agent to release the payment for the recipient.
Deployer will set the owner fee percent and agent fee percent. The fee percent and cancelLockTime are fixed values.
Frontend: NextJS, postcss, tailwindcss, Theme web3 technologies: Web3 Modal, metamask wallet, Hardhat, XMTP Backend: Solidity + TFHE, Node.js, EncryptedERC20 Module
Blockchain: Inco Network
Project initiated and created for Inco - Hackathon 2023:
This project was made using several technologies. The front-end was designed using a server-side-rendering javascript tech known as NextJS. the latest version of Next was used because of how fast it was to build the project.
A user can creates a new pool by clicking either of the following
- Add Pool (Native) INCO or
- Add Pool (ERC20) PST Token Mint PST Token.
When you create a pool a pool with the PST token, you have to approve the contract to spend the PST token on your behalf before transferring token to the smart contract.
Once deal is completed, the agent releases token to the receiver and get its percentage.
If you do not have the PaySmart (PST) Token, you can mint it by clicking on Mint PST Token. The entire project demo was deployed to Vercel
Live Dapp on Vercel: - https://paysmart-inco.vercel.app/
EncryptedERC20 contract https://explorer.inco.network/address/0x5E4e5347eB417982375Ef9BDe0B77F4322FCF79F
escrow contract https://explorer.inco.network/address/0x60cF847C6Ea49009ae290F749451F4CB66CAD0B2
Decrypt contract https://explorer.inco.network/address/0x1B7a6536f23a16e198246A3f80Cd646f86856F11
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
E-mail - holyaustin@yahoo.com
stay connected on twitter @holyaustin