/concordium-browser-wallet

Primary LanguageTypeScriptApache License 2.0Apache-2.0

concordium-browser-wallet

This repository contains the implementation of the Concordium browser wallet, which is an extension for the chrome browser. It consists of 4 separate packages:

Installing

Prerequisites

  • Node.js version 18.14.2
  • Typescript installed globally npm -g install typescript (Used for running the post install script of wallet-common-helpers during yarn install)
  • Yarn installed globally npm -g install yarn (The repository embeds yarn 3.2.0, but needs a global version for easy usage)

Setup

  • Clone repository
  • Install dependencies by running yarn install
  • Build concordium api helpers by running yarn build:api-helpers (The wallet and examples require this package to be built, before they can be built)

The primary package is the browser-wallet package, which builds the final artifact. To built it locally:

  • Run yarn build:(dev|prod) (Note these are global commands and can be run from anywhere in the repository)

Please check out the README for that package, for more information, including how to install this unpacked version. To build the extension for release, use the "Release browser wallet" action.

Development and building packages

Documentation for building, running a development workflow, and other processes specific to each package can be found in the README for the respective package.

There is also the yarn build:all command availabe which can be run after installing the dependencies, to build the wallet and all examples.

Generating license attributions

From the base directory run:

yarn generate-disclaimer

You must manually remove the internal license dependencies before publishing it to the documentation in https://github.com/Concordium/concordium.github.io.