by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Bernd Bohmeier
    @berndbohmeier
    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
    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
    Yay, I did it with 5.5m gas. Methinks you could do with some gas optimization 🙃 What's the next step to get it into the app?
    Tatu
    @Smokyish
    @Swader Please confirm/verify the code at https://explore.tlbc.trustlines.foundation and share the link/address so people can check ut abd let's talk, if it looks all good it shuyldn't be a problem to include the currency network on the kist that the Trustlines App currently uses 😊
    Bruno Škvorc
    @Swader
    Oh this, nope. I don't know where to find my source code.
    The tl-deploy tool didn't tell me it generated any source code, or where it would put it.
    Tatu
    @Smokyish
    I would think that you'd find it in the folder where you deployed it from?
    Bruno Škvorc
    @Swader
    Nope :/
    Bernd Bohmeier
    @berndbohmeier
    contract verification is not that straight forward sadly, as the code is spread across different files. We are working on something that should make that easier
    if you used default settings, these should be the right settings
    Bruno Škvorc
    @Swader
    "There was an error compiling your contract". Do I need to provide ABI encoded constructor args as well?
    Bernd Bohmeier
    @berndbohmeier
    Bruno Škvorc
    @Swader
    Yep, it passed when I dug out the defaults from the deploy tools source
    It needed an older EVM and solc
    @Smokyish what's next?
    Tatu
    @Smokyish
    @Swader So as we discussed in person already, we'll now check the currency network that you deployed and see if it could then be added to the list of currencies used in the Trustlines App :blush: