Folders:
- singleswap_contracts: contracts that are used for a single swap.
- reusable_contracts: contracts that can be used multiple times (only implemented case 1).
Different types of atomic swaps:
- Single-chain token swaps - only one contract is needed.
- Single-chain coin/token swaps - only one contract is needed.
- Cross-chain coin swaps - two contracts (HTLC) are needed (one per blockchain).
- Cross-chain token swaps - two contracts (HTLC) are needed (one per blockchain).
- Cross-chain coin/token swaps - two contracts (HTLC) are needed (one per blockchain).
Sources:
- https://github.com/ConsenSys/Token-Factory/tree/master/contracts
- https://github.com/realcodywburns/Tank-Farm/blob/master/contracts/locking/HTLC%28mew%29.sol
- https://github.com/AltCoinExchange/ethatomicswap/blob/master/contracts/AtomicSwap.sol
Tools used: