ringaile / escrow

ERC20 and ERC721 Escrow project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERC20 / ERC721 Escrow contracts

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.

Features

  • 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

Installation

Download the project and run

npm i

Compile

npx hardhat compile

Test

npx hardhat test

Contributing

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.

License

MIT

About

ERC20 and ERC721 Escrow project


Languages

Language:JavaScript 82.8%Language:Solidity 17.2%