Skip to content

Commit

Permalink
Bump: The Swap library from v0.4.1 to v0.5.0 package.
Browse files Browse the repository at this point in the history
  • Loading branch information
meherett committed Dec 15, 2021
1 parent 8a5ea7a commit 716fc61
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<img align="right" height="132" src="https://raw.githubusercontent.com/movnetwork/swap/master/docs/static/svg/readme/swap.svg">
<img align="right" height="132" src="https://raw.githubusercontent.com/meherett/swap/master/docs/static/svg/readme/swap.svg">

# Swap

[![Build Status](https://travis-ci.com/movnetwork/swap.svg?branch=master)](https://travis-ci.com/movnetwork/swap?branch=master)
[![PyPI Version](https://img.shields.io/pypi/v/swap.svg?color=blue)](https://pypi.org/project/swap)
[![Documentation Status](https://readthedocs.org/projects/swap/badge/?version=master)](https://swap.readthedocs.io)
[![PyPI License](https://img.shields.io/pypi/l/swap?color=black)](https://pypi.org/project/swap)
[![PyPI Python Version](https://img.shields.io/pypi/pyversions/swap.svg)](https://pypi.org/project/swap)
[![Coverage Status](https://coveralls.io/repos/github/movnetwork/swap/badge.svg?branch=master&kill_cache=1)](https://coveralls.io/github/movnetwork/swap?branch=master)
[![PyPI License](https://img.shields.io/pypi/l/swap?color=black)](https://pypi.org/project/swap)


A Python library for Cross-chain atomic swap between the networks of two cryptocurrencies.
Cross-chain atomic swap is the cheapest and most secured by cryptographic proof to swap cryptocurrencies.
It’s a brand new decentralized payment environment based on Hash Time Lock Contracts (HTLC's) protocol.
It’s a brand new decentralized payment environment based on Hash Time Lock Contracts (HTLCs) protocol.

## Available Cryptocurrencies
## Available Cryptocurrencies, Assets & Tokens

You can swap the following available cryptocurrencies:

Expand All @@ -26,7 +25,6 @@ You can swap the following available cryptocurrencies:
| <img align="left" height="25" src="https://raw.githubusercontent.com/movnetwork/swap/master/docs/static/svg/readme/vapor.svg"> [Vapor](https://github.com/bytom/vapor) `BTM` - [More Assets](https://vapor.blockmeta.com/assets) | `mainnet`, `solonet`, `testnet` |
| <img align="left" height="25" src="https://raw.githubusercontent.com/movnetwork/swap/master/docs/static/svg/readme/xinfin.svg"> [XinFin](https://github.com/XinFinOrg/XDPoSChain) `XDC`, `XRC20` - [More Tokens](https://explorer.xinfin.network/tokens/xrc20) | `mainnet`, `apothem`, `testnet` |


## What is a HTLC?

A Hash Time Lock contract (HTLC) is essentially a type of payment in which two people
Expand Down Expand Up @@ -75,7 +73,7 @@ to provide the correct secret passphrase to claim the funds.
claim the funds prior to the expiry. Otherwise, the transaction defaults to enabling the original
sender of funds to claim a refund.

## Benefits of HTLC's
## Benefits of HTLCs

There are many benefits to these types of contracts. First, because they are time sensitive, it
prevents the person who is making the payment from having to wait indefinitely to find out whether
Expand All @@ -102,7 +100,17 @@ secure than ever. Cross chain transactions are the next step in the evolution of
adoption. The easier it becomes to unite the hundreds of blockchain's that currently exist in
silos, the faster the technology as a whole can begin to scale and achieve mass adoption.

[Documentation](https://swap.readthedocs.io)
For more read the [documentation](https://swap.readthedocs.io).

| Hash Time Lock Contracts (HTLCs) | Scripts |
|:-------------------------------------- |:----------------------------------------------------------------------------------------------------------------: |
| Bitcoin: native BTC coin | [htlc.script](https://github.com/movnetwork/swap/blob/master/swap/providers/bitcoin/contracts/htlc.script) |
| Bytom v1.0: native BTM and more assets | [htlc.equity](https://github.com/movnetwork/swap/blob/master/swap/providers/bytom/contracts/htlc.equity) |
| Ethereum: native ETH coin | [htlc.sol](https://github.com/movnetwork/swap/blob/master/swap/providers/ethereum/contracts/htlc.sol) |
| Ethereum for ERC20 tokens | [htlc-erc20.sol](https://github.com/movnetwork/swap/blob/master/swap/providers/ethereum/contracts/htlc-erc20.sol) |
| Vapor: native BTM and more assets | [htlc.equity](https://github.com/movnetwork/swap/blob/master/swap/providers/vapor/contracts/htlc.equity) |
| XinFin: native XDC coin | [htlc.sol](https://github.com/movnetwork/swap/blob/master/swap/providers/xinfin/contracts/htlc.sol) |
| XinFin for XRC20 tokens | [htlc-xrc20.sol](https://github.com/movnetwork/swap/blob/master/swap/providers/xinfin/contracts/htlc-xrc20.sol) |

## Installation

Expand Down Expand Up @@ -152,11 +160,12 @@ For more information, see the [CONTRIBUTING.md](https://github.com/meherett/swap

If You found this tool helpful consider making a donation:

| Coins | Addresses |
| ----------------------------- | :----------------------------------------: |
| Bitcoin `BTC` | 3GGNPvgbSpMHShcaZJGDXQn5wUJyTz7uoC |
| Ethereum `ETH`, Tether `USDT` | 0x342798bbe9731a91e0557fa8ab0bce1eae6d6ae3 |
| Bytom `BTM` | bn1qumdsfgj06ae2nav2ws24t5jzmfagz2amj5arh3 |
| Coins | Addresses |
| ----------------------------- | :-----------------------------------------: |
| Bitcoin `BTC` | 3GGNPvgbSpMHShcaZJGDXQn5wUJyTz7uoC |
| Ethereum `ETH`, Tether `USDT` | 0x342798bbe9731a91e0557fa8ab0bce1eae6d6ae3 |
| Bytom `BTM` | bn1qumdsfgj06ae2nav2ws24t5jzmfagz2amj5arh3 |
| XinFin `XDC` | xdc95e80fc8ef98b92fe71514168c2e4b8f0ce38169 |

## License

Expand Down
2 changes: 1 addition & 1 deletion swap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

# Swap Information's
__version__: str = "0.4.2a3"
__version__: str = "0.5.0"
__license__: str = "AGPL-3.0"
__author__: str = "Meheret Tesfaye Batu"
__email__: str = "meherett@zoho.com"
Expand Down

0 comments on commit 716fc61

Please sign in to comment.