Giter Site home page Giter Site logo

shugangyao1 / eth-xmr-atomic-swap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from athanorlabs/atomic-swap

0.0 0.0 0.0 60.33 MB

๐Ÿ’ซ ETH-XMR atomic swap implementation

License: GNU Lesser General Public License v3.0

Shell 2.67% JavaScript 0.41% Go 87.88% TypeScript 1.29% CSS 0.16% Makefile 0.28% HTML 0.08% Solidity 4.61% Svelte 2.62%

eth-xmr-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.

Recovery module

In case the swap process crashes during a swap, you can recover your funds with the recovery module. Please see the instructions here.

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.

Donations

The work on this project is currently funded via a Monero CCS Proposal If you would like help fund this project, feel free to contribute to a follow-up CCS proposal when it's ready for funding. In the meantime, check out other CCS proposals ready for funding.

eth-xmr-atomic-swap's People

Contributors

noot avatar lederstrumpf avatar mmagician avatar alxs avatar dimalinux avatar tbaut avatar mattdf avatar doonte avatar

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.