Skip to content

Instantly share code, notes, and snippets.

View guilledk's full-sized avatar
😎

Guillermo Rodriguez guilledk

😎
View GitHub Profile

Translator start settings

Translator consumes nodeos state history and stores evm info in elasticsearch.

A note about index naming

Translator will name elastic indexes acording to two settings chainName and depending on what data is to be stored, a suffix from elastic.subfix (yes there is a typo on the config setting name), so for example:

chainName: telos-mainnet

# initialize main class and point to telos node
cleos = CLEOS(url=f'https://mainnet.telos.net')
# import private key related to account_name
cleos.import_key(account_name, private_key)
# transfer from account_name to recipient 1.0000 TLOS with custom memo
cleos.transfer_token(account_name, recipient, '1.0000 TLOS', memo='Hello py-leap!')
[tool.poetry]
name = 'REDACTED'
version = 'REDACTED'
description = 'REDACTED'
authors = ['Guillermo Rodriguez <guillermo@telos.net>']
license = 'AGPL'
readme = 'README.md'
[tool.poetry.dependencies]
python = '^3.10'
@guilledk
guilledk / Dockerfile
Created August 9, 2022 17:42
mandel dockerfile
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y git curl python3
#
# Install CDT v3.0.0-rc1
#
This file has been truncated, but you can view the full file.
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
@guilledk
guilledk / Dockerfile
Created February 26, 2022 15:38
eosio cdt 1.4.1
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
git \
wget \
make \
cmake \
@guilledk
guilledk / Dockerfile
Created February 26, 2022 14:05
eosio cdt 1.5.0
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
git \
wget \
make \
cmake \
@guilledk
guilledk / Dockerfile
Last active February 26, 2022 15:38
eosio.cdt 1.6.3
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
git \
wget \
make \
cmake
@guilledk
guilledk / collectd.conf
Created January 17, 2022 00:00
Minimalist collectd.conf
FQDNLookup true
Interval 10
LoadPlugin syslog
<Plugin syslog>
LogLevel error
</Plugin>
#LoadPlugin csv
This file has been truncated, but you can view the full file.
Run truffle --network private test
LIBERTY LIBERTY LIBERTY
LIBERTY LIBERTY LIBERTY
LIBERTY LIBERTY LIBERTY
! H|H|H|H|H H__________________________________ H|§|§|§|H H|* * * * * *|---------------------| H|§|∞|§|H H| * * * * * |---------------------| H|§|§|§|H H|* * * * * *|---------------------| H|H|H|H|H H| * * * * * |---------------------| H|H|H|H|H H|---------------------------------| =============== H|---------------------------------| /| _ _ | H|---------------------------------| (| O O |) H|---------------------------------| /| U | H----------------------------------- | =/ | H _..._/ H _|I/|_ H _______/| H |/_______ H / / / H | | | / |