Git Product home page Git Product logo

origintrail / node-interface Goto Github PK

View Code? Open in Web Editor NEW
2.0 8.0 2.0 5.47 MB

To make it easier to interact with the node ERC725 identity, and to deposit and withdraw tokens, we have provided a convenient UI. This interface needs to be accessed with your management wallet in combination with MetaMask. OriginTrail https://origintrail.io

Home Page: https://node-profile.origintrail.io/

JavaScript 4.10% HTML 0.87% Vue 88.12% SCSS 6.91%
origintrail origintrail-network origintrail-node blockchain supply-chain ot-node-profile-management ot-node

node-interface's People

Contributors

daleksic1 avatar djordjekovac avatar kipliklotrika avatar kotlarmilos avatar nesovic avatar niks988 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-interface's Issues

Unable to build on windows

I'm unable to use the node profile website for any deposit/withdrawal of xdai. I suspect because I can see the polygon hub address being used when I pick the xdai option at the start. It just doesn't load up anything after I enter my identity.

But... I can't diagnose it because this doesn't install on windows and I don't have a linux dev machine.

I'm likely going to have to write my own website for deposit/withdrawal at the moment it seems so I can deposit again on xdai.

npm install

> [email protected] preinstall C:\Users\Luke Skinner\Source\node-interface-master\node_modules\web3\node_modules\web3-providers-ws
> rm -rf node_modules/websocket/.git

'rm' is not recognized as an internal or external command,
operable program or batch file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `rm -rf node_modules/websocket/.git`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Make ERC 725 Identity & Operational Wallet Required

(Reported on https://node-profile.origintrail.io/)

A user on Discord has used the "Deposit ETH to your Operational Wallet" feature without entering either a ERC 725 Identity or Operational Wallet.

The code at


uses a sendTransaction api call.

According to the documentation at https://web3js.readthedocs.io/en/1.0/web3-eth.html#sendtransaction

image

If you don't provide a "to" address (which would be the operational wallet the user didn't enter) it does a contract creation transaction. As far as I can see there's no way of reclaiming the ETH sent to this contract because the contract code is hard coded to "0x" when it sends the transaction.

I think the login screen should make ERC 725/Operational wallet mandatory. The depositEth() method should also have a safety check on null/empty addresses. I could maybe write up the fixes for this at some point but I'm not familiar with vue.js.

Not really related to the code but the user lost a small amount of ETH here, I can provide details privately if needed.

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.