This script will work like Upwork escrow. This script will be able to interact with any type of ERC20, BEP20, or TRC20 custom tokens. Even you do not need to be the owner of that token.
Every escrow has an expiration time. The buyer will create an escrow which will be shown in the buyer and seller dashboard as pending. The buyer can release payment anytime. If any dispute occurs then the buyer will request to admin to refund that escrow. Admin will investigate the issue and refund if needed before the expiration time. The seller can also refund. After the expiration time, if no dispute or release payment happens, the seller can claim the escrow funds by himself.
When the smart contract deployer logs into the app then he will get a search box, where he can search by escrow id. He will be able to see all the escrows and can refund any escrow still in the pending state before the expiration date or seller claim occur.
On the create escrow popup, the system will show the estimated fee amount and escrow amount calculated from the entered amount by the buyer before creating. While creating, the app will receive the whole amount (fee+escrow amount) from the escrow creator wallet. When the escrow receives the delivered status or seller claim status the fee will be transferred to the admin/owner/contract deployer wallet and the main escrow amount will be transferred to the seller. But, on refund, the whole amount (fee+escrow amount) will be refunded.
One of the big features of this script is upgradeability. It is a UUPS upgradable contract. Check the below link to know the importance of this feature… https://docs.openzeppelin.com/contracts/4.x/api/proxy So, UUPS upgradable feature enables this script to deploy two contracts. One is the proxy and another one is the main implementation.
This script will work like Upwork escrow. Every escrow has an expiration time. The buyer will create an escrow which will be shown in the buyer and seller dashboard as pending. The buyer can release payment anytime. If any dispute occurs then the buyer will request to admin to refund that escrow. Admin will investigate the issue and refund if needed. The seller can also refund. After the expiration time, if no dispute or release payment happens yet, then the seller can claim the escrow funds by himself.
Yes, you can use it with almost all of the EVM-compatible chains including the Binance Smart Chain and Fantom chain.
The app owner can refund the fund to the buyer/1st party/escrow creator before the expiration date.
v2.2.0 - Misc (14 Feb, 2024) * Optimized latest next js * Removed web3.storage, added Filebase for decentralised storage * Security update * Small fixes v2.0.0 - Rewritten From Scratch (31 Jul, 2023) * Removed ethers js and web3 react support * Added Viem and Wagmi support * Next Js Latest * Better stablity and error free
We deployed our demo application in Sepolia Testnet and used this TSAT token. So, please install MetaMask, Coinbase, or any other WalletConnect-supported wallet. Then get some ETH to pay the gas fees and TSAT tokens from Thesoftaxis Faucet.
Youtube Video: Click Here
Demo App Link: Click Here
Online Documentation Link: Click Here
If you have any issues or queries, please feel free to mail us. Mail address [email protected]