Code Monkey home page Code Monkey logo

wallet's Introduction

Glif Wallet

The Glif Wallet is a Filecoin web wallet built with Next.js that allows you to:

  • send and receive Filecoin with your Ledger device
  • create test accounts to send small amounts of FIL
  • import accounts with seed phrases and private keys (SECURITY NOTICE: this is unsecure and is for testing and sending small amounts. If you need to recover an account, do it offline.)

The Glif Vault is a (currently limited functionality) Filecoin web multisig wallet that allows users to:

  • view available and vesting balances
  • withdraw available balances from a multisig to another Filecoin address
  • change owners of a multisig wallet
  • remove a PL signer of a multisig wallet

The Vault currently only supports multisigs that are 1:1 (1 signer, 1 required signature threshold). It can only be used with a Ledger device.

Support and audits

This project was funded by a Filecoin Ecosystem Grant from Protocol Labs. The wallet functionality has been audited by a 3rd party security auditor. The multisig (Vault) functionality has not been audited yet.

Install

npm install
npm run dev

Deploy

Environment variables to export:

  • WEB3_STORAGE_TOKEN
  • LOTUS_NODE_JSONRPC
  • GRAPH_API_URL
  • EXPLORER_URL
  • NODE_STATUS_API_KEY
  • STATUS_API_ADDRESS
  • COIN_TYPE (either t or f)
  • SENTRY_DSN (optional)
  • SENTRY_ENV (optional)

Versioning

Glif follows semantic versioning.

Version x.y.z:

  • When releasing critical bug fixes we make a patch release by changing the z number (e.g. 1.3.2 to 1.3.3).
  • When releasing new features or non-critical fixes, we make a minor release by changing the y number (e.g. 1.3.3 to 1.4.0).
  • When releasing breaking changes, we make a major release by changing the x number (e.g. 1.4.0 to 2.0.0).

Filecoin modules

A number of modules have been broken out into packages in this modules repo.

Filecoin module package local development

In order to develop packages locally and see the changes live in this local wallet repository, the npm link tool can be used to symlink to the packages in your local modules repo.

Package linking is a two-step process.

First, from your local package folder, run:

npm link

Next, from this main wallet repository, run:

npm link @glif/<package-name>

for example, use npm link @glif/react-components to symlink the react-components package to your local version. See the npm link docs for details.

wallet's People

Contributors

as-dr avatar bcomnes avatar dependabot[bot] avatar erchaves avatar ganzai-san avatar github-actions[bot] avatar kumavis avatar listenaddress avatar navfooh avatar olizilla avatar ryanandersen avatar schwartz10 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  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

wallet's Issues

Get ledger in bad state

  1. Open up wallet main screen
  2. navigate to switch accounts
  3. switch from testnet to mainnet accounts
  4. while mainnet accounts are loading, click "show address on ledger device"
  5. broken

The "show address on ledger device" option should only be available when there is a selected wallet (with a path) in redux.

DisconnectedDeviceDuringOperation

  1. Plug in ledger device, unlock it, open it to dashboard
  2. Attempt to call GetVersion, call should fail ("App doesn't seem to be open")
  3. Do not refresh page
  4. Open Filecoin app on ledger
  5. Click try again
  6. DisconnectedDeviceDuringOperation: The device was disconnected.

Show precise balances

Right now everyhting is rounded down, how can a user see their exact filecoin balance?

cache pending txs client side to persist through page refresh

  • when we add a new message to the pending message array, also cache it in local storage
  • when we confirm a message, remove the associated message from local storage (see caveat below)
  • when we initialize the page, populate the pending message array with messages in localstorage

We should also mark a localstorage message as "pending" or "confirmed", so that messages that were found on chain, that have not yet made it to the chainwatch db don't disappear. So the only time we should remove a msg from local storage is once it comes back from the rest API with the same hash.

Must wait until the network reset to make this work

Add refresh balance button

This also needs to exist inside the switch account screen, so that the user can refresh all the balances of all the wallets in redux at one time

Add company info

Need to make clear who is making the app/who to contact if needed.

Add legal "things"

  • terms of use
  • warnings about mnemonic / imported keys
  • limitations of liability clause

Page should not scroll when content does not fill one page

Right now for some reason, each nextjs page scrolls when there isn't enough content to warrant scrolling. This normally wouldn't matter, but it has bad side effects for the FloatingContainer on the send screen.

"Hidden" floating buttons (bc it's 8px off "bottom", which you need to scroll to see):

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.