2021-10-24 01:28:04 +02:00
2021-10-23 19:42:27 -04:00
2021-10-23 19:42:27 -04:00
2021-10-23 19:42:27 -04:00
2021-10-24 02:06:25 +02:00
2021-10-23 19:42:27 -04:00
2021-10-23 12:02:28 -04:00
2021-10-23 17:57:19 +02:00
2021-10-23 11:41:15 -04:00
2021-10-23 11:41:15 -04:00
2021-10-23 19:42:27 -04:00

ETH-XMR Atomic Swaps

This is a prototype of ETH<->XMR atomic swaps, which was worked on during ETHLisbon.

Instructions

Start ganache-cli with determinstic keys:

ganache-cli -d

Start monerod for regtest:

./monerod --regtest --fixed-difficulty=1 --rpc-bind-port 18081 --offline

Start monero-wallet-rpc for Bob with some wallet that has regtest monero:

./monero-wallet-rpc  --rpc-bind-port 18083 --password "" --disable-rpc-login --wallet-file test-wallet

Start monero-wallet-rpc for Alice:

./monero-wallet-rpc  --rpc-bind-port 18084 --password "" --disable-rpc-login --wallet-dir .
Compiling contract bindings

Download solc v0.8.9

Set SOLC_BIN to the downloaded binary

export SOLC_BIN=solc

Generate the bindings

./scripts/generate-bindings.sh
Testing

To run tests on the go bindings, execute

go test ./swap-contract
Description
No description provided
Readme 91 MiB
Languages
Go 93.9%
Shell 2.3%
Svelte 1.6%
TypeScript 0.8%
JavaScript 0.5%
Other 0.8%