All Projects → artemii235 → etomic-swap

artemii235 / etomic-swap

Licence: other
Etomic Swap Smart Contract allowing ETH and ERC20 atomic swaps on AtomicDex platform.

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to etomic-swap

atomicDEX-API
This is the official AtomicAPI (atomicDEX API) repository
Stars: ✭ 65 (+75.68%)
Mutual labels:  komodo, atomic-swap
go-dc-wallet
交易所收提币功能
Stars: ✭ 76 (+105.41%)
Mutual labels:  eth
conduit
Conduit - Open Source 0x Relayer API implemented in NodeJS
Stars: ✭ 18 (-51.35%)
Mutual labels:  eth
gethexporter
Monitor your Geth Ethereum Server with Prometheus and Grafana
Stars: ✭ 103 (+178.38%)
Mutual labels:  eth
framework
Lightweight, open source and magic-free framework for testing solidity smart contracts.
Stars: ✭ 36 (-2.7%)
Mutual labels:  eth
coinbin.org
₿ A Human–Friendly API Service for Crypto Currency Information.
Stars: ✭ 255 (+589.19%)
Mutual labels:  eth
Simple-Game-ERC-721-Token-Template
🔮 Very Simple ERC-721 Smart Contract Template to create your own ERC-721 Tokens on the Ethereum Blockchain, with many customizable Options 🔮
Stars: ✭ 83 (+124.32%)
Mutual labels:  eth
howtrader
Howtrader is a crypto currency quant framework, you can easily develop, backtest and run your own strategy in real market. It also supports tradingview or other 3rd party signals, just simply send a post request and it will help trade automatically. Now it only support binance spot, futures and inverse futures exchange. It will support okex, ftx…
Stars: ✭ 294 (+694.59%)
Mutual labels:  eth
kunkka-match
高性能撮合引擎
Stars: ✭ 50 (+35.14%)
Mutual labels:  eth
BlobHelper
BlobHelper is a common, consistent storage interface for Microsoft Azure, Amazon S3, Komodo, Kvpbase, and local filesystem written in C#.
Stars: ✭ 23 (-37.84%)
Mutual labels:  komodo
kudosbadges
Kudos badges and creative assets for Gitcoin
Stars: ✭ 86 (+132.43%)
Mutual labels:  eth
atomic-swap-kit-android
Atomic Swap Android library for Bitcoin (BTC) and Bitcoin Cash (BCH) swaps in decentralized manner. Implemented on Kotlin.
Stars: ✭ 17 (-54.05%)
Mutual labels:  atomic-swap
erc721
The reference implementation of the ERC-721 non-fungible token standard.
Stars: ✭ 989 (+2572.97%)
Mutual labels:  eth
foundry
Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
Stars: ✭ 4,623 (+12394.59%)
Mutual labels:  eth
laravel-web3
Laravel SDK wrapper for the Web3 PHP API client that interacts with the Ethereum blockchain.
Stars: ✭ 85 (+129.73%)
Mutual labels:  eth
etherscan-python
A minimal, yet complete, python API for Etherscan.io.
Stars: ✭ 335 (+805.41%)
Mutual labels:  eth
atomicswap-qt
decred/atomicswap rewrite by Python3 and add gui by PyQt5
Stars: ✭ 17 (-54.05%)
Mutual labels:  atomic-swap
SilentETHMiner
A Silent (Hidden) Ethereum (ETH & ETC) Miner Builder
Stars: ✭ 219 (+491.89%)
Mutual labels:  eth
trinity-eth
No description or website provided.
Stars: ✭ 14 (-62.16%)
Mutual labels:  eth
minerProxy
以太坊矿池代理,可以自定义抽水地址和比例 ,支持热修改抽水比例。go语言编写,性能极高,唯一正版,明码标价开发费,拒绝暗抽!!!!!!
Stars: ✭ 183 (+394.59%)
Mutual labels:  eth

Etomic Swap Smart Contracts for AtomicDEX platform.

Build Status
Etomic swap Smart Contract is implemented to support ETH and ERC20 atomic swaps on AtomicDex platform. Please note that this project is not production ready yet!

Swap workflow

Smart Contracts follow standard symmetric Atomic swap protocol.
Despite example shows swap of ETH/ERC20 this approach will work also for ETH/ERC20 swaps to any currency supporting HTLC (https://en.bitcoin.it/wiki/Hashed_Timelock_Contracts).

  1. Bob wants to change his 1 ETH to Alice 1 ERC20 token.
  2. Alice sends dexfee (handled externally by client side).
  3. Bob sends payment locked with hash of the Secret. He can refund the payment in 4 hours.
  4. Alice sends payment locked with Bob Secret hash. She can refund her payment in 2 hours.
  5. Bob spends Alice payment by revealing the secret.
  6. Alice spends Bob payment using revealed secret.

Project structure

  1. contracts - Smart Contracts source code.
  2. test - Smart contracts unit tests.

How to setup dev environment?

  1. Install docker.
  2. Run docker-compose build.
  3. Start containers docker-compose up -d.
  4. Install project dependencies: docker-compose exec workspace yarn.
  5. To run tests: docker-compose exec workspace truffle test.

Additional commands

  1. To merge contract to single file: docker-compose exec workspace yarn merge.
  2. To clean merged contract: docker-compose exec workspace yarn clean.

Related links

  1. Komodo platform - https://www.komodoplatform.com
  2. AtomicDEX - https://atomicdex.io

Useful links for smart contracts development

  1. Truffle suite - https://github.com/trufflesuite/truffle
  2. Ganache-cli (EthereumJS Testrpc) - https://github.com/trufflesuite/ganache-cli
  3. Zeppelin Solidity - https://github.com/OpenZeppelin/zeppelin-solidity
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].