Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kevin
    @ethereumkev
    Hello, I just sent some TLN to the token bridge from an ETH address. How can I use my ETH .json keystore file to log into TLC network?
    Bruno Škvorc
    @Swader
    Hi,
    just spoke to your guys here at EthCC. I'd like to add a new currency into the app and the currency registry. How do I go about doing that and submitting the relevant PRs?
    Bruno Škvorc
    @Swader
    Running into an issue right now when installing:
    vagrant@ubuntu1804:~/tl$ pip install trustlines-contracts-deploy
    Collecting trustlines-contracts-deploy
      Could not find a version that satisfies the requirement trustlines-contracts-deploy (from versions: )
    No matching distribution found for trustlines-contracts-deploy
    Bernd Bohmeier
    @berndbohmeier
    @ethereumkev Hey Kevin, what is you preferred way of doing it in ethereum? Maybe there is some similar way for the Trustlines Blockchain.
    So far I would say you could either run parity and run your own node for the Trustlines Blockchain and then connect to it (https://github.com/trustlines-protocol/blockchain#setup-without-docker) or you can run your favorite wallet that allows to connect to an open rpc (for example metamask) and connect it to https://tlbc.rpc.anyblock.tools
    Bernd Bohmeier
    @berndbohmeier
    @Swader I just checked, that command should work. which python version are you on?
    we only support >= 3.6
    Bruno Škvorc
    @Swader
    System defaults to 2.7, it's a new VM. The docs should be updated, right now it's kind of ambiguous what with the additional secp256k1 instructions. I'll try with newer python, thanks.
    Bruno Škvorc
    @Swader
    Installed. To start developing install the development dependencies into a venv with pip install -c constraints.txt -r requirements.txt - what are the development deps? Is a step missing, like a repo to clone?
    Bruno Škvorc
    @Swader
    Oh https://github.com/trustlines-protocol/contracts - maybe make a note of that in the docs too
    Bruno Škvorc
    @Swader
    Link to deploy docs from this page is dead: https://dev.trustlines.network/docs/contracts/contracts_README.html
    it is also not clear where one should get deploy-tools
    (part of make compile)
    Bernd Bohmeier
    @berndbohmeier
    If you just want to deploy a new currency network, pip install trustlines-contracts-deploy is enough. Then just run tl-deploy currencynetwork --help to see the available options
    the development dependencies are only needed if you want to start hacking on the code
    And thanks, I noted the problems with the docs and we will work on that.
    Bruno Škvorc
    @Swader
    Is tl-deploy supposed to be in my path after installation? I can't find it
    Bernd Bohmeier
    @berndbohmeier
    it is installed by pip install trustlines-contracts-deploy
    where exactly depends on your python setup, so whether you use a virtual environment or not for example
    I would recommend using a virtual env, you can create one with python3 -m venv name-of-venv
    you can that activate and use it with ./name-of-venv/bin/activate
    after that install it again inside the venv pip install trustlines-contracts-deploy, then you should find it in name-of-venv/bin
    Bernd Bohmeier
    @berndbohmeier
    It should also work in your setup, but I can not tell you where to find it there.
    Bruno Škvorc
    @Swader
    Started from scratch with venv, no dice. I have installed tl-deploy previously but I have no idea where it is. Still I'd expect the venv to install its own copy, it's like the venv isn't activating? see here: https://gist.github.com/Swader/4aacb4e56f2a86e8a2eead8a450fda3c
    Nvm, looks like removing it entirely from system and reinstalling helped.
    Thanks for your help - if the https://dev.trustlines.network/docs/contracts/contracts_README.html page is pulling directly from the repo's readme, I can submit a PR with clarifications if you think it'd be valuable.
    Bruno Škvorc
    @Swader

    The SYMBOL option needs clarification too - how does one define it? Is it a URL, a UTF8 character? Is that the ticker ($BEER) or the logo?

    I see on blockscout that it's a ticker. How does one define the icon for the coin?

    Bruno Škvorc
    @Swader
    Final problem:
    vagrant@ubuntu1804:~/trustlines$ ~/.local/bin/tl-deploy currencynetwork --decimals 0 --fee-rate 0.0 --jsonrpc https://mainnet.infura.io/v3/d68880c5c0db411ab96a2ae4cd9c80a7 --gas 500000 --gas-price 5 --auto-nonce --keystore key.json Favor FAV
    Please enter the password to decrypt the keystore []:
    /usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
      import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
    Traceback (most recent call last):
      File "/home/vagrant/.local/bin/tl-deploy", line 8, in <module>
        sys.exit(cli())
      File "/home/vagrant/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
        return self.main(*args, **kwargs)
      File "/home/vagrant/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
        rv = self.invoke(ctx)
      File "/home/vagrant/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/home/vagrant/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/home/vagrant/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
        return callback(*args, **kwargs)
      File "/home/vagrant/.local/lib/python3.6/site-packages/tldeploy/cli.py", line 208, in currencynetwork
        private_key=private_key,
      File "/home/vagrant/.local/lib/python3.6/site-packages/tldeploy/core.py", line 148, in deploy_network
        private_key=private_key,
      File "/home/vagrant/.local/lib/python3.6/site-packages/tldeploy/core.py", line 56, in deploy
        contract_interface = contracts[contract_name]
      File "/home/vagrant/.local/lib/python3.6/site-packages/tldeploy/core.py", line 34, in __getitem__
        self.data = load_contracts_json()
      File "/home/vagrant/.local/lib/python3.6/site-packages/tldeploy/core.py", line 23, in load_contracts_json
        with open(path, "rb") as f:
    FileNotFoundError: [Errno 2] No such file or directory: '/usr/trustlines-contracts/build/contracts.json'
    Looks like the currencynetwork command needs something from the repo after all, but I'm not sure how to get contracts.json built into /usr/
    Bruno Škvorc
    @Swader
    Hacked through it by manually including contracts.json from docs site in the required location 🤷‍♂️ you should also mention in the docs of the tool that the gas price is in wei, and not gwei. Otherwise this can happen: https://etherscan.io/tx/0x84ec7b0036bed95e4716f8a932e8e2c5fc9c14c3a55746f783ba5d8d8782970a 🤦‍♂️
    Bruno Škvorc
    @Swader
    Waaaait. Is the jsonRpc flag supposed to be an ethereum mainnet node or a TL node?
    Bruno Škvorc
    @Swader
    Ok, can't figure it out. Running a non-validator node, passed in localhost:30302 to the jsonRpc flag, it seems to be trying to send something, but then just fails with requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
    Bernd Bohmeier
    @berndbohmeier
    The node where you want to deploy it, so TL node if you want to deploy on TL
    the rpc port is usually 8545. 30302 is the port for the peer2peer protocol
    Bruno Škvorc
    @Swader
    I want to add a new currency onto TL, so essentially add it into the app eventually, yes. Right now there is no other way to use a custom currency since the app isn't open source yet (right?) so I want to add my currency into the trustlines.app. I understand the first step to doing this is add currencynetwork via tl-deploy, that's what I'm trying to do. I am running a node now, but I never got friendly with docker so have no idea how to expose the ports from the quickstart script. Can you give me an RPC endpoint for TL of a live node for this deployment
    Bernd Bohmeier
    @berndbohmeier
    yes, you can connect to https://tlbc.rpc.anyblock.tools
    Bruno Škvorc
    @Swader
    That worked - error message now changed to insufficient funds. I assume I need TLN tokens instead of eth?
    Bernd Bohmeier
    @berndbohmeier
    yes, you need TLC on the Trustlines Blockchain
    Do you have some?
    Bruno Škvorc
    @Swader
    I have TLN on Eth. Can I convert to TLC? How much should I need for a currency deployment?
    How much should I burn approx?
    Bernd Bohmeier
    @berndbohmeier
    You can convert TLN to TLC by sending it to the bridge contract address https://etherscan.io/address/0x18bdc736b23ff7294bed9fa988a1443357c7b0ed
    Bruno Škvorc
    @Swader
    Just send or call burn?
    Bernd Bohmeier
    @berndbohmeier
    Send a normal ERC token transfer there
    0.01 TLN should be enough
    Make sure to send TLN, and not ETH :)
    it will then take approx ~10 blocks on ethereum and another 10 blocks on TLBC until your tokens arrive
    Bruno Škvorc
    @Swader
    Can the currencynetwork subcommand accept private key instead of keystore or only keystore?
    Bernd Bohmeier
    @berndbohmeier
    only keystore at the moment. You can either look for a tool to convert it, or if you are familiar with python use the function manually
    Bruno Škvorc
    @Swader
    Yep, I sent some TLC around so all good. But getting out of gas hits, even with 2.5m gas: https://explore.tlbc.trustlines.foundation/tx/0xe1ea36e9926cdbef5624021e61a24c6bfe3ccdae66fbea474a05bfb30f24dd78/internal_transactions