mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-10 22:58:07 -05:00
73f324968b2824ef31b05afa22dd7dd75bfd58ba
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 stagenet:
monerod --stagenet
Start monero-wallet-rpc:
./monero-wallet-rpc --stagenet --rpc-bind-port 18082 --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
Languages
Go
93.9%
Shell
2.3%
Svelte
1.6%
TypeScript
0.8%
JavaScript
0.5%
Other
0.8%