1.1.4 • Published 4 years ago

trustlines-contracts-abi v1.1.4

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

|Code style: black|

Trustlines Smart Contract Platform

This documentation explains how to deploy Trustlines smart contracts, for creating your own currency network and trustlines exchange. The current documentation is written for an Ubuntu Linux system.

Prerequisites

  • Python 3.6 or up and dev dependencies
  • pip <https://pip.pypa.io/en/stable/>__
  • git

Run apt install build-essential python3-dev python3-virtualenv virtualenv pkg-config libssl-dev automake autoconf libtool git make

One of the dependencies used is the secp256k1 library. If you're using python 3.5 on linux you can skip the following step, since pypi contains binary packages for secp256k1. If not, you'll have to run the following to install the secp256k1 C library:

::

git clone https://github.com/bitcoin-core/secp256k1.git
cd secp256k1
./autogen.sh
./configure --enable-module-recovery
make
sudo make install
sudo ldconfig

Deployment tools

This section runs through the tooling necessary for deploying the contracts.

Ethereum client

To deploy the Trustlines smart contracts, you need an ethereum client,
e.g. geth or parity, which is synced to the chain you want to use. The
client needs to expose the JSON RPC endpoint. Additionally you need an
unlocked account with enough ether to pay for the contract deployment.

Deployment setup

Please run pip install trustlines-contracts-deploy to install the tl-deploy tool from PyPI. Solidity itself isn't needed anymore.

tl-deploy

The tool ``tl-deploy`` allows you to deploy the relevant contracts.

Use ``tl-deploy --help`` to find out about the relevant commands or read
further in the `deploy documentation <https://github.com/trustlines-protocol/contracts/blob/master/docs/deploy.md>`__

Development
-----------

To start developing install the development dependencies into a venv
with ``pip install -c constraints.txt -r requirements.txt``

Download and install the solidity compiler solc into bin for compiling the
contracts

   ``curl -L -o $HOME/bin/solc https://github.com/ethereum/solidity/releases/download/v0.4.25/solc-static-linux && chmod +x $HOME/bin/solc``

Compiling

The contracts can be compiled with make compile. This will create a virtualenv venv-populus containing the populus program, which is used for compilation.

Testing

For testing we use pytest with an ethereum tester plugin. The tests can
be run with ``pytest``. Please not that this will recompile all contracts
automatically, there's no need to call ``make compile`` manually.

Installation

Please run make install to install the trustlines-contracts-bin and trustlines-contracts-deploy tool from the git checkout.

Change log

See CHANGELOG <https://github.com/trustlines-protocol/contracts/blob/master/CHANGELOG.rst>_.

.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.0-a3

4 years ago

1.1.0-a2

4 years ago

1.0.0

4 years ago

0.10.1

4 years ago

0.10.0

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.3-9-gb951750

5 years ago

0.3.3

5 years ago

0.3.2-4-g6ae04bb

5 years ago