GithubHelp home page GithubHelp logo

marvinjanssen / stacks-wallet-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leather-io/extension

1.0 1.0 0.0 12.94 MB

Stacks Wallet is a browser extension for managing your digital assets and connecting to apps built with the Stacks blockchain.

Home Page: https://hiro.so/wallet/install-web

License: MIT License

JavaScript 6.42% HTML 0.30% TypeScript 91.89% Shell 0.08% Dockerfile 0.12% CSS 1.19%

stacks-wallet-web's Introduction

Stacks Wallet for web

Stacks Wallet is a browser extension for managing your digital assets and connecting to apps built with the Stacks blockchain.

Source code is available on GitHub at https://github.com/blockstack/stacks-wallet-web/tree/main

To use this extension with your own Stacks App, we recommend using Connect.

Table of Contents:

Development

When working locally with stacks-wallet-web, it can only be used as you'd use any extension. There is no ability to run it as a standalone web application.

Setup

Clone this repository and install dependencies:

git clone https://github.com/blockstack/stacks-wallet-web
cd stacks-wallet-web
yarn

Dev mode

When working on the extension, you can run it in development mode which will watch for any file changes and use react-refresh to update the extension as you work. This gives us near instant reloading of our changes, and persists the state of the application between changes. To start development mode for the extension, run this command:

yarn dev

Optional: run test app

We bundle a test app to use along with the extension. It gives easy access to the various functions that the extension can do.

In a separate terminal, run:

yarn dev:test-app

Add extension to your browser

After starting development mode, you'll have to add it to your browser of choice. Stacks Wallet for web currently only supports chromium and firefox browsers. When you run yarn dev, it will compile the application to the /dist folder within the project.

Chromium

  1. Go to: chrome://extensions
  2. Toggle: "developer mode" on
  3. Click on: "Load unpacked"
  4. Navigate to the stacks-wallet-web project directory
  5. Select the dist directory to load the extension

Firefox

  1. Go to: about:debugging
  2. Click on "This Firefox"
  3. Click on: "Load Temporary Add-on…"
  4. Navigate to the stacks-wallet-web project directory
  5. Select the manifest.json file.

Adding a Changeset

This repository utilizes Changesets in order to create a CHANGELOG.md file and update the version of the wallet. Each pull request should include a changeset, which includes a description of the changes made in your PR. Most information can be found in the changesets repository, but the quickest way to add a changeset is to run yarn changeset add. You'll be prompted to enter a summary of your changes.

Once your PR is merged into the main branch, a new pull request will automatically be created. This is a "release" pull request. The PR will merge your changesets into the CHANGELOG.md file, and will update the version of the wallet appropriately, depending on the type of change you've made.

In general, you should not update the version of the wallet (found in package.json). Each commit in a PR will generate a "beta" version, which can be used for testing.

Production

Building browser extensions

From the root of this repository, in the command line, run:

sh build-ext.sh

The extension will be packaged as stacks-wallet-chromium.zip inside this folder.

Optional: use Docker

  1. Build the docker image locally:
    docker build . -t stacks-wallet-web
  2. Copy the built extensions to your local machine:
    docker run -d --name stacks-wallet-web stacks-wallet-web && docker cp stacks-wallet-web:stacks-wallet-chromium.zip . && docker rm -f stacks-wallet-web

Install browser extension from source

First, unzip the stacks-wallet-chromium.zip file that was generated in the previous step.

Chromium

Use these steps when using a Chromium browser, like Chrome, Brave, and Edge.

  1. Go to: chrome://extensions
  2. Toggle: "developer mode" on.
  3. Click on: "Load unpacked"
  4. Select the new directory that was unzipped from stacks-wallet-chromium.zip.

Firefox

  1. Go to: about:debugging
  2. Click on "This Firefox"
  3. Click on: "Load Temporary Add-on…"
  4. Navigate inside the new directory that was unzipped from stacks-wallet-chromium.zip
  5. Select the manifest.json file.

stacks-wallet-web's People

Contributors

actions-user avatar aulneau avatar blockstack-devops avatar charliec3 avatar dependabot[bot] avatar friedger avatar github-actions[bot] avatar hstove avatar johndmulhausen avatar kantai avatar kyranjamie avatar markmhendrickson avatar rustyf avatar snyk-bot avatar wileyj avatar yknl avatar

Stargazers

 avatar

Watchers

 avatar

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.