Coder Social home page Coder Social logo

formony / ton_client Goto Github PK

View Code? Open in Web Editor NEW
46.0 5.0 10.0 7.46 MB

Python API client for [Telegram Open Network] blockchain

License: Mozilla Public License 2.0

Makefile 1.18% Python 98.82%
ton-client blockchain ton telegram telegram-open-network telegram-api

ton_client's People

Contributors

dependabot[bot] avatar olegvg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ton_client's Issues

Setup script exited with error: command 'gcc' failed with exit status 1

$ make setup-all && python ./setup.py install
PIPENV_VENV_IN_PROJECT=1 PIPENV_IGNORE_VIRTUALENVS=1  pipenv install
Installing dependencies from Pipfile.lock (e501ff)…
  🐍   β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰ 6/6 β€” 00:00:01
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
PIPENV_VENV_IN_PROJECT=1 PIPENV_IGNORE_VIRTUALENVS=1  pipenv install --dev
Installing dependencies from Pipfile.lock (e501ff)…
  🐍   β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰ 16/16 β€” 00:00:04
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
running install
running bdist_egg
running egg_info
writing ton_client.egg-info/PKG-INFO
writing dependency_links to ton_client.egg-info/dependency_links.txt
writing requirements to ton_client.egg-info/requires.txt
writing top-level names to ton_client.egg-info/top_level.txt
reading manifest file 'ton_client.egg-info/SOURCES.txt'
writing manifest file 'ton_client.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/ton_client
copying build/lib/ton_client/__init__.py -> build/bdist.linux-x86_64/egg/ton_client
creating build/bdist.linux-x86_64/egg/ton_client/distlib
creating build/bdist.linux-x86_64/egg/ton_client/distlib/darwin
copying build/lib/ton_client/distlib/darwin/libtonlibjson.dylib -> build/bdist.linux-x86_64/egg/ton_client/distlib/darwin
creating build/bdist.linux-x86_64/egg/ton_client/distlib/linux
copying build/lib/ton_client/distlib/linux/libtonlibjson.so -> build/bdist.linux-x86_64/egg/ton_client/distlib/linux
copying build/lib/ton_client/tonlib.py -> build/bdist.linux-x86_64/egg/ton_client
copying build/lib/ton_client/client.py -> build/bdist.linux-x86_64/egg/ton_client
copying build/lib/ton_client/utils.py -> build/bdist.linux-x86_64/egg/ton_client
byte-compiling build/bdist.linux-x86_64/egg/ton_client/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/ton_client/tonlib.py to tonlib.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/ton_client/client.py to client.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/ton_client/utils.py to utils.cpython-37.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying ton_client.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ton_client.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ton_client.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ton_client.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ton_client.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ton_client.egg-info/zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/ton_client-0.5-py3.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing ton_client-0.5-py3.7.egg
Removing /home/whoami/Soft/anaconda3/lib/python3.7/site-packages/ton_client-0.5-py3.7.egg
Copying ton_client-0.5-py3.7.egg to /home/whoami/Soft/anaconda3/lib/python3.7/site-packages
ton-client 0.5 is already the active version in easy-install.pth

Installed /home/whoami/Soft/anaconda3/lib/python3.7/site-packages/ton_client-0.5-py3.7.egg
Processing dependencies for ton-client==0.5
Searching for crc16
Reading https://pypi.org/simple/crc16/
Downloading https://files.pythonhosted.org/packages/a6/e0/70a44c4385f2b33df82e518005aae16b5c1feaf082c73c0acebe3426fc0a/crc16-0.1.1.tar.gz#sha256=c1f86aa0390f4baf07d2631b16b979580eae1d9a973a826ce45353a22ee8d396
Best match: crc16 0.1.1
Processing crc16-0.1.1.tar.gz
Writing /tmp/easy_install-a_o8geg7/crc16-0.1.1/setup.cfg
Running crc16-0.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-a_o8geg7/crc16-0.1.1/egg-dist-tmp-1c3dmqr5
/home/whoami/Soft/anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_crc16module.o: unable to initialize decompress status for section .debug_info
/home/whoami/Soft/anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_crc16module.o: unable to initialize decompress status for section .debug_info
/home/whoami/Soft/anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_crc16module.o: unable to initialize decompress status for section .debug_info
/home/whoami/Soft/anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_crc16module.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.7/src/_crc16module.o: file not recognized: file format not recognized
collect2: error: execution ld failed with exit status 1
error: Setup script exited with error: command 'gcc' failed with exit status 1

And then:

$ conda install crc16==0.1.1 -c auto
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: - 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                               
                                                                                                                                                     
UnsatisfiableError: The following specifications were found                                                                                          
to be incompatible with the existing python installation in your environment:

  - crc16==0.1.1 -> python=2.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to.  Your current python version
is (python=3.7).  Note that conda will not change your python version to a different minor version
unless you explicitly specify that.

Package setuptools conflicts for:
python=3.7 -> pip -> setuptools
crc16==0.1.1 -> python=2.7 -> pip -> setuptools
Package ca-certificates conflicts for:
crc16==0.1.1 -> python=2.7 -> ca-certificates
python=3.7 -> openssl[version='>=1.1.1b,<1.1.2a'] -> ca-certificates
Package pip conflicts for:
python=3.7 -> pip
crc16==0.1.1 -> python=2.7 -> pip
Package wheel conflicts for:
crc16==0.1.1 -> python=2.7 -> pip -> wheel
python=3.7 -> pip -> wheel
Package certifi conflicts for:
crc16==0.1.1 -> python=2.7 -> pip -> setuptools -> certifi[version='>=2016.09']
python=3.7 -> pip -> setuptools -> certifi[version='>=2016.09']

It looks like crc16==0.1.1 does not support python 3.7

Logs continue to appear in stdout

After receiving the result of the method, .cpp files' logs continue to appear on my screen. Actually I have executed this code. How can I suppress the logs?

cli = client.TonlibClientAsyncio()
cli.raw_get_transactions('Ef_H6vvBBqeqS6PRYAfGrGTKrBB4tKQ1dzOeJG9GZAXolh-k', '521037000002','60506BCEF5E1BFBEF2AE74111D9A35390F35172DB4E22B13998D140B81537069')

image

Failed to decrypt: hash mismatch

Basically, create_new_key method produces public_key and secret key pair based on some seed. While wallet_init accepts this key pair as the argument.

I receive Failed to decrypt: hash mismatch error after call of wallet_init function with a newly generated key pair.

For example:

public = "PuaGVHFuXdewdwrvKfAH4w8JNnmnrZA2bZdeM5pHRyv2DjXu"
secret = "ulrQxDhSSBdXgeeybfOZB9EUqdGLN75bKbay7uyJJLY="
wallet = await client.wallet_init(public, secret)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.