Giter Club home page Giter Club logo

account-viewer's People

Contributors

bartekn avatar chirag175 avatar dependabot[bot] avatar fnando avatar irisli avatar jacekn avatar mozzadrella avatar poliha avatar pselden avatar sgehrman avatar thomasklemm avatar tomerweller avatar vcarl avatar

Stargazers

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

Watchers

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

account-viewer's Issues

npm install ko: ed25519

npm install fails when it tries to compile ed25519.

../src/ed25519.cc:10:49: error: no member named 'New' in 'v8::String'
        return ThrowException(Exception::Error(String::New(msg)));

Version:
npm 2.14.4
node v4.1.1

Memo shouldn't be removed when a new accountId is entered

Steps to reproduce:

  1. Add memo
  2. Add AccountId

One might want to add the memo first just to make sure they don't forget the memo. But what happens is that doing it in this order makes the memo actually not be there, leading to sending a transaction missing its intended memo.

Allow encoded XDR of signed payment to be viewed before submitting

Would you me amenable to a PR allowing the signed transaction XDR to be viewed before submitting it? This would allow you to use the account viewer even if multi-sig is enabled (letting you copy it so you can send it to another signer).

I'm thinking possibly of some expandable section or a dialog containing the XDR that opens when you press a link.

Warn of payments to exchanges without memo

We see so many users forgetting to set the memo when sending funds to exchanges like Bittrex and Kraken that we should consider displaying a warning when they try to do so. I've noticed stellarchain, stellar dashboard, and stellar expert all identify these exchanges (perhaps by home domain? or is this hard coded?).

don't use interstellar

If interstellar is truly discontinued, remove it's usage here. Update the build instructions so they don't use interstellar. It hasn't been updated for more than a year and it makes building this app problematic.

Add Trezor support

I'm planning on implementing Trezor support but I'm opening an issue for initial discussion and feedback before I begin coding.

This will also depend on an update to the Trezor Connect project which is being tracked by this issue: trezor/connect#127

As far as the actual implementation, I was planning on adding a "Sign in with Trezor" button under the "Sign in with Ledger" one and essentially copying the Ledger functionality.

Memo helper placeholder broken

image

In the send pane, selecting a memo should update the placeholder in the input to the right of it.

Here are the requirements for memo: #12

Fix checking the maximum amount user can send

https://github.com/stellar/account-viewer/blob/master/controllers/send-widget.controller.es6

        let minimumBalance = 20 + (account.subentry_count) * 10;
        let nativeBalance = _(account.balances).find(balance => balance.asset_type === 'native').balance;
        let maxSend = new BigNumber(nativeBalance).minus(minimumBalance);
        if (maxSend.lt(this.amount)) {
          throw new BasicClientError('InsufficientBalanceError', {maxSend});
        }

We're not subtracting transaction fee from maxSend. Thanks @briangale for catching this!

How to run this in development?

Hi there,

I'm new to Stellar and wanted to contribute, but I can't seem to get it working. npm version is 5.6

account-viewer master % interstellar develop
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error: spawn /usr/local/lib/node_modules/interstellar/bin/../../../node_modules/gulp/bin/gulp.js ENOENT
    at _errnoException (util.js:999:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
    at onErrorNT (internal/child_process.js:389:16)
    at process._tickCallback (internal/process/next_tick.js:152:19)
    at Function.Module.runMain (module.js:703:11)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3
account-viewer master %

Offline use

For maximum security it is best never to expose keys to an online machine, by generating wallets, and signing transactions completely offline. This client is very close to being able to do that, but doesn't quite work offline. If I download the page as a single file with all dependencies and scripts inlined using the plugin Save Page WE, the page loads but the buttons are non responsive - no errors display in the console. This is the file that is generated: https://ufile.io/w8s2r

It seems like enabling offline functionality is a few tweaks away, are there any plans to implement it?

Here is a bitcoin-centric tool implemented in such a fashion: https://coinb.in/

Online activities, like reading balances or broadcasting transactions could be optional.

Thanks.

Memo

Work in progress: https://github.com/stellar/account-viewer/tree/memo

Text and messages

memo type placeholder error message
MEMO_TEXT A string up to 28 characters long MEMO_TEXT must contain a maximum of 28 characters
MEMO_ID A 64 bit unsigned integer MEMO_ID must be a valid 64 bit unsigned integer
MEMO_HASH A 32 byte hash MEMO_HASH must be a 32 byte hash represented in hexadecimal (A-Z0-9)
MEMO_RETURN A 32 byte hash MEMO_RETURN must be a 32 byte hash represented in hexadecimal (A-Z0-9)

No-memo state

image

Memo setup state

After Add memo is clicked, the memoSetup element appears and defaults to MEMO_TEXT

image

Memo setup with error state

Note: the text in this screenshot is out of date. Refer to the Text and messages section for the correct messages

image

Ledger connection timeout

It looks like Ledger connection timeouts if payment is not confirmed quickly. To reproduce:

  1. Login using Ledger device.
  2. Send 1 XLM to yourself.
  3. Wait for 60 seconds in the Ledger device confirmation screen.
  4. Confirm transaction in the Ledger device.

At this point, nothing happens and transaction is not signed.

Make TestNet logins available

I like the solution as created for #9 but on the sign-in page I'd like to be able to sign in to TestNet (for lots of purposes). Account-Viewer gives us developers a somewhat "official" way to demonstrate our code is doing the right thing (if I write some code on my laptop and someone can refresh their stellar.org Account-Viewer on TestNet view; and sees the appropriate changes reflected; that's a independent validation that the code actually worked).

As someone just cobbling together some first scripts; having these tools on TestNet would greatly improve those "I'm doing it right" validation moments for code/people looking at it through distributed endpoints.

How to buildin on Ubuntu/Alpine

Hello!
I have a problem with building in Docker on Ubuntu/Alpine OS.
fsevetns supported only MacOS.
Is it possible to avoid this error on Ubuntu?

Module not found: Error: Can't resolve 'fs'

Limit precision in send pane

I'm able to do this without errors in the send building. But if I submit this transaction, I get a OP_UNDERFUNDED.

image

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.