• Stars
    star
    1,363
  • Rank 34,456 (Top 0.7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MyCrypto is an open-source tool that allows you to manage your Ethereum accounts privately and securely. Developed by and for the community since 2015, we’re focused on building awesome products that put the power in people’s hands.

MyCrypto Web App

Build codecov

This repo stores the MyCrypto codebase. The code is served at app.mycrypto.com

Documentation can be found in our wiki

Development / Build Requirements

  • Node 12.14.1*
  • Yarn >= 1.19.1**

On systems where a pre-built version of node-hid is not available (e.g. 32-bit versions of Windows and Linux), you additionally need Python (3+) and node-gyp installed.

*Higher versions should work fine, but may cause inconsistencies.
**npm is NOT supported for package management. MyCrypto uses yarn.lock to ensure sub-dependency versions are pinned, so yarn is required to install node_modules

***For users trying to build with WSL, you'll need to have install libpng via sudo apt-get install libpng16-dev.

Running the App

First, you must run yarn to grab all the dependencies. If you are ever having trouble with something, a good place to start is by trying rm -rf node_modules/ && yarn which will completely clear all your previously installs dependencies and re-install them from scratch.

Then, you can run various commands depending on what you want to do:

Development

# run app in dev mode in browser, rebuild on file changes
yarn start

A development server will be available on https://localhost:3000 If you're using Chrome, you will get a net::ERR_CERT_AUTHORITY_INVALID warning. To disable it you can your settings in chrome: chrome://flags/#allow-insecure-localhost

Staging

# builds app for staging
yarn build:staging

Production

# builds app for production
yarn build

Testing

Unit Tests

# runs all unit tests using jest
yarn test

End-to-end Tests

# runs all e2e tests using testcafe
yarn test:e2e

To debug E2E tests in the browser

yarn test:e2e:dev

You can also run a single file

yarn test:e2e:dev __tests__/dashboard.test.js

Environments

In development we use a .env file to define required values. The list is defined in .env.example. These values are made available to the React code through the dotenv webpack plugin. In production, the values are set through Github secrets and made available to the React app through the webpack.EnvironmentPlugin. NB. Since TestCafe has access to the node, the values are available at process.env and do not need to be cloned.

Product Analytics

We use product analytics to help us understand how to improve our features.

The collection of usage data requires the use of unique identifiers which are stored in the browsers local storage. The id is random and can be removed or reset in the Settings panel. This ensures that our product team can identify places to improve the product, while at the same time protecting the users anonymity.

We strive to provide access to the Ethereum blockchain in the most secure way possible, we refuse any dynamic script injections and only rely on HTTPS calls to the API. The calls are formatted using the excellant @blockstock/stats library.

Finally, since User privacy is part of our core values, we also take special care to ensure that the data we send to thrid-party servers is purged from any information which may be de-anonymised such as:

  • Every analytics call is sent to a MYC hosted reverse-proxy, strip of the users ip address and browser fingerprint before being forwarded to the data-warehouse (in this case )

  • never sending an ETH address or Transaction hash to our analytics warehouse.

Dependency verification.

The integrity hash is generated by base64 encoding the sha512 binary digest:

  openssl dgst -binary -sha512 <dependency>.tgz | openssl base64

The best way to verify the integrity hash of a yarn.lock is to compare the integrity hashes. This may be done manually.

  1. Download tgz from yarnpkg host

  2. Generate integrity hash for it (sha512 base64)

  3. Unpackage tgz

  4. Download files from Github at relevant tag

  5. Diff the files from Github and the files from the unpackages tgz

      $ diff -r node_modules/<depedency> tmp/<downloaded_dependency>
    

More Repositories

1

eth-scan

An efficient Ether and token balance scanner library
TypeScript
192
star
2

ethereum-blockies-base64

A tiny library for generating blocky identicons as base64 encoded PNGs.
JavaScript
65
star
3

mycrypto.com

Legacy version of MyCrypto.com. Was used in production from 2015-2018. See https://github.com/MyCryptoHQ/mycrypto for up-to-date codebase
JavaScript
63
star
4

gas-estimation

EIP-1559 gas estimation library, using the estimation strategy of MyCrypto.
TypeScript
57
star
5

MoneroVision

MoneroVision is an open-source Monero block explorer that is offered as a part of the MyCrypto network
TypeScript
43
star
6

shepherd

Ensure high-availability for your JSON-RPC calls while improving user-experience
TypeScript
40
star
7

knowledge-base-content

Content for the knowledge base to separate the code / logic from the content
TypeScript
24
star
8

assets

Asset mapping for usage with CoinCap, CoinGecko, CryptoCompare and CryptoCurrency Icons
TypeScript
23
star
9

knowledge-base

Knowledge base for MyCrypto
TypeScript
21
star
10

ui

The shared UI component library used across all MyCrypto products.
TypeScript
17
star
11

parity-ecs

Shell
15
star
12

wallets

Wallet abstractions to be used throughout the MyCrypto product suite.
TypeScript
12
star
13

sentry

A bot that watches a website or GitHub assets for changes and communicates them to Slack.
TypeScript
11
star
14

landing

The landing page of MyCrypto
TypeScript
11
star
15

parse-eth-tokens

Tool used to parse the 'ethereum-lists/tokens' repository to a format that is used by MyCrypto
TypeScript
11
star
16

drawbridge

A command line application that helps deploy and verify projects that build deterministically.
TypeScript
9
star
17

support.mycrypto.com

Answers & help for MyCrypto.com & the Ethereum blockchain. If your answer isn't here, contact MyCrypto support instantly.
JavaScript
9
star
18

quill

TypeScript
7
star
19

wallet-list

TypeScript
7
star
20

tx-categorize

Go
6
star
21

about.mycrypto.com

The production content is on `MyCryptoHQ/landing` - this repo is old.
SCSS
6
star
22

unlock-scan

An efficient Unlock Protocol scanner
TypeScript
5
star
23

download.mycrypto.com

CSS
4
star
24

ts-package-boilerplate

A boilerplate for building packages with typescript source
TypeScript
4
star
25

winter.mycrypto.com

#MyCryptoWinter
HTML
4
star
26

DeFiReserveMapper

Used for mapping DeFi pool tokens to their related reserves for caching in use by beta.mycrypto.com
Go
3
star
27

eth-rpc-types

TypeScript
3
star
28

Overflow

TypeScript
3
star
29

MyCrypto-Boilerplate

JavaScript
3
star
30

MoonpaySigner

A Golang Moonpay.io signer
HCL
2
star
31

security.mycrypto.com

CSS
2
star
32

hw-app-xmr

An XMR ledger communication library
TypeScript
2
star
33

blog

TypeScript
2
star
34

escape.mycrypto.com

HTML
2
star
35

ganache-toolbox

Ganache Toolbox is a simple CLI to fund a Ganache test account with relevant tokens to execute tests on MyCrypto.
TypeScript
1
star
36

eth-tokenize

A library that provides decentralised methods of fetching token lists
TypeScript
1
star
37

download

TypeScript
1
star
38

go-gas-express

An Ethereum Gas Station API (in Golang)
Go
1
star
39

nano-result

A mini result handing library inspired by Rusts' Result enum
TypeScript
1
star
40

path-alias-resolver

TypeScript
1
star
41

membership-dashboard

MyCrypto Membership Dashboard
TypeScript
1
star
42

MyCrypto-Production

1
star
43

buy.mycrypto.com

CSS
1
star
44

MyCrypto-Beta

1
star