Giter Site home page Giter Site logo

ethernal-cli's People

Contributors

antoinedc avatar tammam1998 avatar

Stargazers

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

Watchers

 avatar  avatar

ethernal-cli's Issues

Debug Transaction

I am using ganache-cli forking BSC network and I am using truffle. I tried to configure de "transactions tracing" which is suported by ganache, but the trace doesn't appear and no error is shown.

What am I doing wrong?

Thanks

Strange issue after installation

I've been installing using yarn:

yarn global add ethernal

After trying to start it (no matter with or without 'login'):
ethernal login

I'm getting this error:

~/.config/yarn/global/node_modules/ethernal/firebase.js:18
    workspace;
             ^

SyntaxError: Unexpected token ;
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (~/.config/yarn/global/node_modules/ethernal/bin/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

Which leads to this file:

workspace;

I had to comment out "workspace;" to make it work in any way. But I think the error is somewhere else?

After successfully running ethernal login (with the change in firebase.js) it obviously works. I also receive events in app.tryethernal.com dashboard. But while trying to deploy a local development smart-contract using ganache and ethernal listen the following happens:

Detected Truffle project ...
Getting artifact for Migrations.json in .../build/contracts
Getting artifact for Migrations.json in .../build/contracts
(node:17962) UnhandledPromiseRejectionWarning: Error: Reference.child failed: First argument was an invalid path = "/users/JVOwaZJFWZf1yOE9o2Z0AKD9Vyj2/workspaces/Ganache-CLI (127.0.0.1:8545)/contracts/0xc218f3f2f8c8c05d7debd39ac0f7bcee91dc8a20/artifact". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"

So I'm not shure is this an error in solidity smart-contract code? I've been using truffle standard template without modifications yet!

Or is it one or two different errors in ethernal-cli?

Can't login or listen

Ran ethernal listen. Same for ethernal login

Got

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module '@truffle/dashboard-message-bus-client'
Require stack:
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/dashboard.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/EventManager.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/config/dist/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/bin/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/dashboard.js:4:5)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/index.js:3:14)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/dashboard.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/index.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/EventManager.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/index.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/config/dist/index.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/bin/index.js'
  ]
}

I tried doing a npm i -g @truffle/dashboard-message-bus-client and running ethernal login again but that produced this error:

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './messages'
Require stack:
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/node_modules/@truffle/dashboard-message-bus-common/dist/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/dist/client.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/dist/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/dashboard.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/EventManager.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/config/dist/index.js
- /Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/bin/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/tomisinjenrola/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/node_modules/@truffle/dashboard-message-bus-common/dist/index.js:13:14)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/tomisinjenrola/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/dist/client.js:16:40)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/node_modules/@truffle/dashboard-message-bus-common/dist/index.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/dist/client.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/@truffle/dashboard-message-bus-client/dist/index.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/dashboard.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/defaultSubscribers/index.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/EventManager.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/node_modules/ethernal/node_modules/@truffle/events/index.js',
    '/Users/user/.nvm/versions/node/v16.15.0/lib/no...

Missing parameter networkId in the workspace configuration

@antoinedc, en utilisant ganache, j'ai un networkId à 5777, que je ne peux pas setter dans le frontend, donc l'upload du contrat ne fonctionne pas

var contractAddress = parsedArtifact.networks[db.workspace.networkId] ? parsedArtifact.networks[db.workspace.networkId].address : null;

J'ai passé le networkId de mon ganache à celui qui est considéré mis par défaut sur le workspace, à savoir 1337, et cela fonctionne parfaitement pour obtenir les méthode read et write.
Il reste une chose que je n'ai pas creusée : le storage ne remonte pas.

installation fails on linux, missing instructions

I was trying to use the hardhat plugin and to do the login step, but npm install ethernal -g fails to install.

It seems that the issue is some library that is a prerequisite for keytar dependency on linux: https://github.com/atom/node-keytar#on-linux . Running the commands in the link solved the issue, so it's worth to add that to your quickstart docs and onboarding UI.

Also, the readme of this repo should be updated because it mentions npm install ethernal-cli -g which doesn't exist.

Remote error from secret service: org.freedesktop.DBus.Error.UnknownMethod

Hello. I am receiving this error in a linux system with node version 14.

I installed it in another system with similar specs and works well, but in this one not.

I was searching in google, but only found answers about docker. Can anyone give me a hand?

Thanks.

root@xxx:~# ethernal login ? Email: [email protected] ? Password (will be securely stored in your local keychain): [hidden] ** Message: 16:28:28.419: Remote error from secret service: org.freedesktop.DBus.Error.UnknownMethod: No such interface ?org.freedesktop.Secret.Collection? on object at path /org/freedesktop/secrets/collection/login No such interface “org.freedesktop.Secret.Collection” on object at path /org/freedesktop/secrets/collection/login

ethernal listen causes TypeError: Cannot read property 'get' of undefined

Excited to try out Ethernal for the first time! I created an account and workspace, however ethernal listen crashes:

$ ethernal listen

Start listening for transactions

Options:
      --help       Show help                                           [boolean]
      --version    Show version number                                 [boolean]
  -w, --workspace  Workspace to connect to.                             [string]
  -d, --dir        Project directory to watch                            [array]
  -s, --server     Do not watch for artifacts change - only listen for
                   transactions
  -l, --local      Do not listen for transactions - only watch contracts

TypeError: Cannot read property 'get' of undefined
    at getDefaultWorkspace (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:389:69)
    at async setWorkspace (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:405:28)
    at async setupWorkspace (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:418:5)
    at async Object.listen [as handler] (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:422:5)

I added some debug and saw that currentUser.data() returns:

currentUser.data() is {
  plan: 'free',
  apiKey: '<censored>',
  stripeCustomerId: 'cus_<censored>'
}

but the code implies it should be returning an object which has a currentWorkspace property. Seems that probably comes from the firebase db, so I guess it's a server-side issue?

Cannot find module './common/helpers'

Hi, I've tried installing ethernal globally (and locally) in my project. However, whenever I try to use an ethernal command I get the error mentioned in the title.
For instance, when I type "ethernal -v", I get the following stack trace (using M1 Mac, node v16.13.2 and npm v8.1.2)

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './common/helpers'
Require stack:
- /usr/local/lib/node_modules/ethernal/node_modules/solc/linker.js
- /usr/local/lib/node_modules/ethernal/node_modules/solc/translate.js
- /usr/local/lib/node_modules/ethernal/node_modules/solc/wrapper.js
- /usr/local/lib/node_modules/ethernal/node_modules/solc/index.js
- /usr/local/lib/node_modules/ethernal/bin/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/ethernal/node_modules/solc/linker.js:7:19)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/ethernal/node_modules/solc/translate.js:5:34)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/ethernal/node_modules/solc/linker.js',
    '/usr/local/lib/node_modules/ethernal/node_modules/solc/translate.js',
    '/usr/local/lib/node_modules/ethernal/node_modules/solc/wrapper.js',
    '/usr/local/lib/node_modules/ethernal/node_modules/solc/index.js',
    '/usr/local/lib/node_modules/ethernal/bin/index.js'
  ]
}

Any ideas ? Thanks in advance.

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.