ERC20 / ERC721 Escrow application built on Ethereum. Base escrow contract, holds tokens designated for a payee for a designated time. It can by withdrawn after the end of escrow time.
- The smart contract Escrow.sol allows user to send any ERC20 token for escrow.
- The smart contract EscrowERC721.sol allows user to send any ERC721 token for escrow.
- The user can specify escrow time and the account that can claim it.
- The contract EscrowFactory.sol supports batched escrow Escrow.sol creation.
- The contract EscrowERC721Factory.sol supports batched escrow EscrowERC721.sol creation.
The following tokens are created for testing purposes only:
- ERC20TestToken.sol
- ERC721TestToken.sol
Download the project and run
npm i
npx hardhat compile
npx hardhat test
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.