tryethernal / ethernal-cli Goto Github PK
View Code? Open in Web Editor NEWCLI to sync transactions and Truffle artifacts with Ethernal.
Home Page: https://www.tryethernal.com
License: MIT License
CLI to sync transactions and Truffle artifacts with Ethernal.
Home Page: https://www.tryethernal.com
License: MIT License
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
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:
Line 18 in 6793fea
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?
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...
@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
Line 182 in 68ddbfd
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.
I was looking for an option to modify or delete workspaces, but I could not find it.
Do it exist?
Thanks
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.
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
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.