Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Henri Heinonen
    @HenriHeinonen
    I am sorry to say, but I do not understand the documentation of Trustlines Network. Can you help me to set things up from the beginning, please?
    Henri Heinonen
    @HenriHeinonen
    What should I have on my computer? What should I download from the Github? How to connect to Ganche? etc.
    How to do a web page with a simple button that does something on the Trustlines Network?
    Bernd Bohmeier
    @berndbohmeier
    Hi. What would you like to do? Set up the system on a local chain, or try out an already deployed system on a testchain?
    Henri Heinonen
    @HenriHeinonen
    Hi! Both will do. Maybe I should start with a local chain, though?
    Henri Heinonen
    @HenriHeinonen

    henri@henri-VirtualBox:~$ node

    import { TLNetwork } from 'trustlines-clientlib'
    import { TLNetwork } from 'trustlines-clientlib'
    ^

    SyntaxError: Unexpected token {

    Henri Heinonen
    @HenriHeinonen
    henri@henri-VirtualBox:~/Asiakirjat$ yarn add trustlines-clientlib
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'add'
    I have no idea what to do...
    Henri Heinonen
    @HenriHeinonen
    henri@henri-VirtualBox:~/Asiakirjat$ 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
    Henri Heinonen
    @HenriHeinonen
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn serve
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'serve'
    https://github.com/trustlines-protocol/clientlib/blob/master/examples/injected-web3/index.html
    <script type="text/javascript" src="/_bundles/trustlines-clientlib.js"></script>
    Where is that trustlines-clientlib.js file located?
    Henri Heinonen
    @HenriHeinonen
    Hello! Anyone?
    Bernd Bohmeier
    @berndbohmeier
    Hi
    Bernd Bohmeier
    @berndbohmeier
    if you want to run a local setup you can do so by checking out this repo https://github.com/trustlines-protocol/end2end via git. You will then need to install docker and docker-compose.
    Then run run-e2e.sh -b inside of the repo. This will bring up a relay server at 127.0.0.1:5000. This can be used then with the metamask example.
    On your other issues, you need to check out the clientlib repo via git, and then run yarn and after that yarn serve This should give you the example website
    Bernd Bohmeier
    @berndbohmeier

    node

    import { TLNetwork } from 'trustlines-clientlib'
    import { TLNetwork } from 'trustlines-clientlib'
    ^

    SyntaxError: Unexpected token {

    You can not use es6 syntax in node out of the box. This is not a problem of our lib.

    Henri Heinonen
    @HenriHeinonen
    ./run-e2e.sh will give this
    ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
    Hi!
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn
    00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn serve
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'serve'
    Bernd Bohmeier
    @berndbohmeier
    sorry but both have nothing to do with trustlines. Please make sure that your docker and yarn setup is correct first.
    on which operating system are you?
    can you try this to test if your docker is working
    Bernd Bohmeier
    @berndbohmeier
    for yarn problem, can you please run yarn info in the clientlib folder and post the output here?
    Henri Heinonen
    @HenriHeinonen
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn --version
    0.32+git
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn info
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'info'
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ which yarn
    /usr/bin/yarn
    Ubuntu 19.04 (64-bit).

    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ docker run hello-world
    docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
    See 'docker run --help'.
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ sudo docker run hello-world
    [sudo] salasana henkilölle henri:
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    1b930d010525: Pull complete
    Digest: sha256:92695bc579f31df7a63da6922075d0666e565ceccad16b59c3374d2cf4e8e50e
    Status: Downloaded newer image for hello-world:latest

    Hello from Docker!
    This message shows that your installation appears to be working correctly.

    Henri Heinonen
    @HenriHeinonen
    Okay! "sudo ./run-e2e.sh" does something interesting; it is downloading lots of files!
    Bernd Bohmeier
    @berndbohmeier
    please fix your docker setup. You should be member of the docker group, so that you can run docker without using root
    then it should work
    for yarn that seems really weird, I dont know what you installed, how did you install that?. The version on ubuntu 10.04 should be 1.13.0
    can you try to remove it and reinstall it?
    Bernd Bohmeier
    @berndbohmeier
    Installing with sudo apt install yarn
    FYI we are discussing how we can improve our documentation, so that this will be easier in the future.
    Bernd Bohmeier
    @berndbohmeier
    * I meant ubuntu 19.04
    Henri Heinonen
    @HenriHeinonen

    for yarn problem, can you please run yarn info in the clientlib folder and post the output here?

    Now it works!
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn info
    yarn info v1.15.2
    { name:
    'trustlines-clientlib',
    'dist-tags':
    { latest:
    '0.4.2',
    next:
    '0.1.2-next.20180816T100742Z.fdb2685.HEAD',
    dev:
    '0.4.3-0-dev.20190418T151117Z.e4ec0fe' },
    versions:
    [ '0.0.1',
    '0.1.0',
    '0.1.1',
    '0.1.2-dev.20180816T093610Z.7f62300.HEAD',
    '0.1.2-dev.20180816T103808Z.2e313bb.HEAD',
    '0.1.2-dev.20180817T100838Z.3438646.HEAD',
    '0.1.2-dev.20180817T101709Z.d1e6622.HEAD',
    '0.1.2-dev.20180820T070359Z.826cf38.HEAD',
    '0.1.2-next.20180816T100742Z.fdb2685.HEAD',
    '0.1.2',
    '0.1.3-dev.20180822T082547Z.24cba90.HEAD',
    '0.1.3-dev.20180822T102431Z.1969074.HEAD',
    '0.1.3-dev.20181009T153444Z.871eaa3.HEAD',
    '0.1.3-dev.20181011T124854Z.953e548.HEAD',
    '0.1.3-dev.20181113T171213Z.6d797ce.HEAD',
    '0.1.3-dev.20181114T123018Z.b2222c4.HEAD',
    '0.1.3-dev.20181114T140340Z.dfd8471.HEAD',
    '0.1.3',
    '0.1.4',
    '0.1.5-dev.20181114T152441Z.5f4d690.HEAD',
    '0.1.5-dev.20181114T155919Z.48fe055.HEAD',
    '0.1.5-dev.20181114T161947Z.c2ae077.HEAD',
    '0.2.0-dev.20181115T123614Z.959b6f9.HEAD',
    '0.2.0',
    '0.2.1-dev.20181115T132422Z.8798c79.HEAD',
    '0.2.1',
    '0.2.2-0-dev.20181115T132855Z.015d698.HEAD',
    '0.2.2-0-dev.20181130T153121Z.a71eef2.HEAD',
    '0.2.2-0-dev.20181130T164335Z.ce12130.HEAD',
    '0.2.2-0-dev.20181205T085901Z.87fb174.HEAD',
    '0.2.2-0-dev.20181205T161129Z.364804f.HEAD',
    '0.2.2-0-dev.20181211T074901Z.332295b.HEAD',
    '0.2.2-0-dev.20181211T100239Z.8df1728.HEAD',
    '0.2.2-0-dev.20181213T115912Z.b878235.HEAD',
    '0.2.2',
    '0.2.3-0',
    '0.2.3-0-dev.20181218T105243Z.da11882.HEAD',
    '0.2.3-0-dev.20181218T113352Z.83173ad.HEAD',
    '0.2.3-0-dev.20190103T094750Z.7a80dcc.HEAD',
    '0.2.3-0-dev.20190103T145740Z.f2cfdf3.HEAD',
    '0.2.3-0-dev.20190115T153223Z.2a980d2.develop',
    '0.2.3-0-dev.20190115T160817Z.ae4001d.develop',
    '0.2.3-0-dev.20190116T093637Z.f082941.develop',
    '0.2.3-0-dev.20190121T081412Z.e108eac.develop',
    '0.2.3-0-dev.20190124T110658Z.3c09440.develop',
    '0.2.3-0-dev.20190206T133014Z.0a2df72.develop',
    '0.2.3-0-dev.20190211T154519Z.9a4abc6.develop',
    '0.2.3-0-dev.20190212T164719Z.d830113.develop',
    '0.2.3-0-dev.20190214T121558Z.67cd815.develop',
    '0.3.0',
    '0.3.1-0-dev.20190215T094103Z.540df19.develop',
    '0.3.1-0-dev.20190215T095707Z.ebfe91d.develop',
    '0.3.1-0-dev.20190218T080704Z.fbbea39.develop',
    '0.3.1-0-dev.20190228T092245Z.38bbe25.develop',
    '0.3.1-0-dev.20190308T095219Z.ce986d5.develop',
    '0.3.1-0-dev.20190312T132411Z.585b7c9.develop',
    '0.3.1-0-dev.20190320T134048Z.c3753de.develop',
    '0.3.1-0-dev.20190322T140908Z.b45e062.develop',
    '0.3.1-0-dev.20190327T115420Z.e34adb5.develop',
    '0.3.1-0-dev.20190327T174347Z.98ce77e.develop',
    '0.3.1-0-dev.20190329T154941Z.f1b6bfa.develop',
    '0.3.1-0-dev.20190401T152935Z.be0e3de.develop',
    '0.3.1-0-dev.20190403T073929Z.4d933ad.develop',
    '0.4.0',
    '0.4.1-0-dev.20190417T143405Z.07adc8d',
    '0.4.1',
    '0.4.2-0-dev.20190417T150508Z.eb601b3',
    '0.4.2-0-dev.20190418T135212Z.62d9890',
    '0.4.2',
    '0.4.3-0-dev.20190418T151117Z.e4ec0fe' ],
    time:
    { created:
    '2018-08-01T09:18:19.472Z',
    '0.0.1':
    '2018-08-01T09:18:19.584Z',
    modified:
    '2019-04-18T15:22:02.476Z',
    '0.1.0':
    '2018-08-02T10:46:44.721Z',
    '0.1.1':
    '2018-08-02T16:54:51.813Z',
    '0.1.2':
    '2018-08-07T15:37:58.284Z',
    '0.1.2-dev.20180816T093610Z.7f62300.HEAD':
    '2018-08-16T09:40:47.935Z',
    '0.1.2-next.20180816T100742Z.fdb2685.HEAD':
    '2018-08-16T10:16:10.561Z',
    '0.1.2-dev.20180816T103808Z.2e313bb.HEAD':
    '2018-08-16T10:48:48.561Z',
    '0.1.2-dev.20180817T100838Z.3438646.HEAD':
    '2018-08-17T10:16:21.870Z',
    '0.1.2-dev.20180817T101709Z.d1e6622.HEAD':
    '2018

    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn --version
    1.15.2
    I also fixed the Docker installation with your tips.
    Henri Heinonen
    @HenriHeinonen
    20190501-1950.jpg
    Any ideas why the network is not showing up? MetaMask is connected to Kovan network.
    I am trying to send trustline request of 100 to other party.
    "TypeError: network is undefined"
    Bernd Bohmeier
    @berndbohmeier
    To which relay server is your website connected to?
    Do you just use the metamask example as is and are connected to the local docker setup? Then you should also connect your metamask to your local setup (127.0.0.1:8545)
    Henri Heinonen
    @HenriHeinonen
    The website was connected to
    const tlNetwork1 = new trustlines.TLNetwork({
    port: 5000,
    path: 'api/v1',
    web3Provider: web3.currentProvider
    })
    This seems to work better:
    const tlNetwork1 = new trustlines.TLNetwork({
    protocol: 'https',
    host: 'relay0.testnet.trustlines.network',
    path: 'api/v1/',
    web3Provider: web3.currentProvider
    })
    Bernd Bohmeier
    @berndbohmeier
    Just make sure that the website is connected to a relay server that is connected to the same blockchain as your metamask. With those settings both is now connected to the setup on kovan run by us.
    You can also use the first settings, but then you need to make sure that your metamask is also connected to your localsetup (127.0.0.1:8545)