A minimal end to end proof of concept of using Swap contracts written by Swarm and maintained here: https://github.com/ethersphere/swap-swear-and-swindle
All contract code imported from the above repo.
Ported to Hardhat and Ethers.io.
# How to run
For scripts there is a script to setup SWAP contracts. To run it and make it persistent we can do the following:
Which will return you a list a list of addresses for ERC20, Alice, Bob, and their respective SWAP contracts. You can then interact with it by running a console: