Skip to content

Collection of platform-agnostic modules for creating secure data models for cryptocurrency wallets

Notifications You must be signed in to change notification settings

thanhpn/wallet-controllers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Controllers

A collection of platform-agnostic modules for creating secure data models for cryptocurrency wallets.

Modules

This is a monorepo that houses the following packages. Please refer to the READMEs for these packages for installation and usage instructions:

Here is a graph that shows the dependencies among all packages:

Dependency graph

Note To regenerate this graph, run yarn generate-dependency-graph.

Contributing

Setup

  • Install Node.js version 14.
    • If you are using nvm (recommended) running nvm use will automatically choose the right node version for you.
  • Install Yarn v3.
  • Run yarn install to install dependencies and run any required post-install scripts.
  • Run yarn simple-git-hooks to add a Git hook which will ensure that all files pass the linter before you push a branch.

Testing and Linting

Run yarn test to run tests for all packages. Run yarn workspace <package-name> run test to run tests for a single package.

Run yarn lint to lint all files and show possible violations, or run yarn lint:fix to fix any automatically fixable violations.

Release & Publishing

This project follows a unique release process. The create-release-branch tool and action-publish-release GitHub action are used to automate the release process; see those repositories for more information about how they work.

  1. To begin the release process, run create-release-branch, specifying the packages you want to release. This tool will bump versions and update changelogs across the monorepo automatically, then create a new branch for you.

  2. Once you have a new release branch, review the set of package changelogs that the tool has updated. For each changelog, update it to move each change entry into the appropriate change category (see here for the full list of change categories and the correct ordering), and edit them to be more easily understood by users of the package.

    • Generally any changes that don't affect consumers of the package (e.g. lockfile changes or development environment changes) are omitted. Exceptions may be made for changes that might be of interest despite not having an effect upon the published package (e.g. major test improvements, security improvements, improved documentation, etc.).
    • Try to explain each change in terms that users of the package would understand (e.g. avoid referencing internal variables/concepts).
    • Consolidate related changes into one change entry if it makes it easier to explain.
    • Run yarn auto-changelog validate --rc to check that the changelog is correctly formatted.
  3. Submit a pull request for the release branch, so that it can be reviewed and tested.

    • If changes are made to the base branch, the release branch will need to be updated with these changes and review/QA will need to restart again. As such, it's probably best to avoid merging other PRs into the base branch while review is underway.
  4. Squash & Merge the release.

    • This should trigger the action-publish-release workflow to tag the final release commit and publish the release on GitHub.
  5. Publish the release on npm.

    • Wait for the publish-release GitHub Action workflow to finish. This should trigger a second job (publish-npm), which will wait for a run approval by the npm publishers team.
    • Approve the publish-npm job (or ask somebody on the npm publishers team to approve it for you).
    • Once the publish-npm job has finished, check npm to verify that it has been published.

About

Collection of platform-agnostic modules for creating secure data models for cryptocurrency wallets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.6%
  • JavaScript 1.5%
  • Other 0.9%