GithubHelp home page GithubHelp logo

mewmix / atomic-swap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from athanorlabs/atomic-swap

0.0 1.0 0.0 61.07 MB

๐Ÿ’ซ ETH-XMR atomic swap implementation

License: GNU Lesser General Public License v3.0

Shell 2.10% JavaScript 0.29% Go 90.90% TypeScript 0.91% CSS 0.11% Makefile 0.24% HTML 0.05% Solidity 3.59% Svelte 1.76% Dockerfile 0.05%

atomic-swap's Introduction

ETH-XMR Atomic Swaps

This is a WIP implementation of ETH-XMR atomic swaps, currently in the pre-production development phase. It currently consists of swapd and swapcli binaries, the swap daemon and swap CLI tool respectively, which allow for peers to discover each other over the network, query peers for their current available offers, and the ability to make and take swap offers and perform the swap protocol. The swapd program has a JSON-RPC endpoint which the user can use to interact with it. swapcli is a command-line utility that interacts with swapd by performing RPC calls.

Disclaimer

This code is unaudited and under active development and should not be used on mainnet or any networks that hold monetary value!!!

Protocol

Please see the protocol documentation for how it works.

Swap instructions

Trying it locally

To try the swap locally with two nodes (maker and taker) on a development environment, follow the instructions here.

Trying it on Monero's stagenet and Ethereum's Goerli testnet

To try the swap on Stagenet/Goerli, follow the instructions here.

Additional documentation

Developer instructions

Please see the developer docs.

RPC API

The swap process comes with a HTTP JSON-RPC API as well as a Websockets API. You can find the documentation here.

Contributions

If you'd like to contribute, feel free to fork the repo and make a pull request. Please make sure the CI is passing - you can run make build, make lint, and make test to make sure the checks pass locally.

Contact

Donations

The work on this project has been funded previously by community grants. It is currently not funded; if you'd like to donate, you can do so at the following address:

  • XMR 8AYdE4Tzq3rQYh7QNHfHz8HqcgT9kcTcHMcRHL1LhVtqYwah27zwPYGdesBgK5PATvGBAd4BC1t2NfrqKQqDguybQrC1tZb
  • ETH 0x39D3b8cc9D08fD83360dDaCFe054b7D6e7f2cA08

Running on Telos Testnet

Use the dockerfile to build the image, then install the xmr cli. once done start your swap-d with these arguements



docker build -t my-ubuntu-image .

docker run -it my-ubuntu-image /bin/bash

./bin/swapd --env stagenet --ethereum-endpoint=https://testnet.telos.net/evm --contract-address=0xf4430c9645215E3196427D6E83B57F9fC02DB930

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.