masaun / streamed-atomic-swaps

This is dApp for "Streamed Atomic Swaps" by using sablier protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamed Atomic Swaps


【Introduction of Streamed Atomic Swaps】

  • This is the "Streamed Atomic Swaps".
  • This is dApp for "Streamed Atomic Swaps" by using sablier protocol.
  • I implement "Streamed Atomic Swaps" in ./contracts/StreamedSwap.sol especially.
    • Currently, I implement swap between DAI and BAT on ropsten. (Both of value are static. So, I will replace value from static to dynamic in the future)

 


【Setup】

Setup wallet by using Metamask

  1. Add MetaMask to browser (Chrome or FireFox or Opera or Brave)
    https://metamask.io/

  2. Adjust appropriate newwork below

Ropsten Test Network

 

Setup backend

  1. Deploy contracts to Kovan Test Network
(root directory)

$ npm run migrate:ropsten

 

Setup frontend

  1. Execute command below in root directory.

$ npm run client
  1. Access to browser by using link
http://127.0.0.1:3000

 


【Work flow】

 


【References】

About

This is dApp for "Streamed Atomic Swaps" by using sablier protocol.


Languages

Language:JavaScript 91.8%Language:CSS 6.1%Language:HTML 1.4%Language:Shell 0.7%