telosnetwork / telos-evm-docker

Automated Telos EVM development and automated test framework
Apache License 2.0
12 stars 3 forks source link
1-5 docker evm

telos-evm-docker

Docker containers for local EVM development and building automated tests

Overview

Background Service Containers

redis

elasticsearch

kibana

filebeats

Data pipeline

nodeos container

The Telos node container, this is a local Telos native network on which the TelosEVM contract is deployed

telosevm-translator & telos-evm-rpc

This piece of software consumes the nodeos websocket and produces EVM data that the telos-evm-rpc container can consume to serve the ethereum compatible API.

Dependencies

You will need docker & python3.

Installation:

git clone https://github.com/telosnetwork/telos-evm-docker.git -b v1.5.0
cd telos-evm-docker

# Two posibilities:
# 1) Recommended: Install poetry python package manager dependecy to /usr/local (REQUIRES SUDO)
sudo ./install.sh

# 2) Install dependency to another $DIRECTORY that is already on $PATH
./install.sh $DIRECTORY

Execution

source ./activate.sh
tevmc init local
cd local
tevmc build
tevmc up
tevmc stream daemon

Important data

Running Tests

With all containers up, tests can be run using truffle:

cd telos-evm-docker/tests/test_erc20/
truffle test --network private --verbose-rpc