Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support etc optional chainid #1

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
5ef8049
refactor to support multiple hw wallets
brunobar79 Aug 11, 2018
78a1cd3
iframe communication working
brunobar79 Aug 11, 2018
8e842a8
able to add accounts
brunobar79 Aug 11, 2018
aa6a42e
rename keyring
brunobar79 Aug 11, 2018
011cc14
tx signing should work
brunobar79 Aug 11, 2018
12b41b8
tx signature is valid
brunobar79 Aug 11, 2018
068bf43
working
brunobar79 Aug 11, 2018
e6d64ce
message signing works
brunobar79 Aug 12, 2018
2355573
clean up
brunobar79 Aug 12, 2018
0b9b892
this should be ready to go
brunobar79 Aug 12, 2018
8f9a0a5
clean up
brunobar79 Aug 12, 2018
77ad856
remove ledger lib
brunobar79 Aug 12, 2018
4e1d8ba
good progress adding paths
brunobar79 Aug 13, 2018
61a2792
legacy and new hd path working
brunobar79 Aug 14, 2018
b77cc3d
fix tx tests
brunobar79 Aug 14, 2018
c72ced7
ui fixes
brunobar79 Aug 14, 2018
19d1988
fix
brunobar79 Aug 14, 2018
53dcad5
more ui
brunobar79 Aug 14, 2018
fdf202e
fixed unit tests
brunobar79 Aug 15, 2018
82a5ed1
remove console logs
brunobar79 Aug 15, 2018
80fe3ce
Merge branch 'develop' into ledger-support
Aug 15, 2018
e54b850
use eth-ledger-bridge-keyring from npm
brunobar79 Aug 15, 2018
8fb7099
Merge branch 'ledger-support' of github.com:MetaMask/metamask-extensi…
brunobar79 Aug 15, 2018
d2d8d38
update package-lock.json
brunobar79 Aug 15, 2018
837be70
change Metamask for MetaMask
brunobar79 Aug 15, 2018
2ea05e3
connect screen ready
brunobar79 Aug 16, 2018
2858146
ui ready
brunobar79 Aug 17, 2018
b369560
fix e2e tests
brunobar79 Aug 17, 2018
51e4a6d
fix ledger affiliate link
brunobar79 Aug 17, 2018
df799d7
Restores accounts until one with a zero balance is found
dmvt Jul 27, 2018
992e7f1
fix merge conflicts
brunobar79 Aug 17, 2018
0391ec3
update package-lock.json
brunobar79 Aug 17, 2018
755369e
Merge pull request #4898 from dmvt/multi-account-restore
danfinlay Aug 17, 2018
bd904c8
Merge branch 'develop' into ledger-support
Aug 17, 2018
c7f5436
Merge pull request #5050 from MetaMask/ledger-support
danfinlay Aug 17, 2018
e493efb
ci: Don't cache Firefox install
whymarrh Aug 17, 2018
7b89d3d
ci: Disable Firefox updates
whymarrh Aug 17, 2018
2185197
ci: Use Firefox 61.0.2
whymarrh Aug 17, 2018
8f834ed
ci: Install any npm@6
whymarrh Aug 17, 2018
0090693
ci: Use workspaces instead of caches for passing data downstream
whymarrh Aug 17, 2018
fb5faec
Merge pull request #5090 from whymarrh/fix-ci
kumavis Aug 17, 2018
cec87a5
Update logo wordmark
alextsg Aug 19, 2018
887cad9
Merge pull request #5095 from MetaMask/i4953-update-logo
danfinlay Aug 20, 2018
8dcf860
support chainid
hackmod Jun 5, 2018
110b65b
setup settings and use correct ticker / blockexploer URLs
hackmod Jun 18, 2018
c603f13
support shapeshift exchange for deposit
hackmod Jun 22, 2018
11a918e
update rpcList correctly
hackmod Aug 1, 2018
9cbb649
use ETC Cooperative's api server for ETC
hackmod Aug 16, 2018
5825556
ui: fixed css style
hackmod Aug 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 57 additions & 130 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ workflows:
full_test:
jobs:
- prep-deps-npm
- prep-deps-firefox
- prep-build:
requires:
- prep-deps-npm
Expand All @@ -28,7 +27,6 @@ workflows:
- test-e2e-firefox:
requires:
- prep-deps-npm
- prep-deps-firefox
- prep-build
- test-e2e-beta-chrome:
requires:
Expand All @@ -37,7 +35,6 @@ workflows:
- test-e2e-beta-firefox:
requires:
- prep-deps-npm
- prep-deps-firefox
- prep-build
- test-unit:
requires:
Expand All @@ -49,7 +46,6 @@ workflows:
- test-integration-mascara-firefox:
requires:
- prep-deps-npm
- prep-deps-firefox
- prep-scss
- test-integration-flat-chrome:
requires:
Expand All @@ -58,7 +54,6 @@ workflows:
- test-integration-flat-firefox:
requires:
- prep-deps-npm
- prep-deps-firefox
- prep-scss
- all-tests-pass:
requires:
Expand Down Expand Up @@ -103,46 +98,34 @@ jobs:
- restore_cache:
keys:
- v1.0-dependency-cache-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1.0-dependency-cache-
- run:
name: Install npm 6 + deps via npm
command: |
sudo npm install -g [email protected] && npm install --no-save
sudo npm install -g npm@6 && npm install --no-save
- persist_to_workspace:
root: .
paths:
- node_modules
- save_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
paths:
- node_modules
prep-deps-firefox:
docker:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-firefox-
- run:
name: Download Firefox If needed
command: ./.circleci/scripts/firefox-download.sh
- save_cache:
key: v1.0-dependency-cache-firefox-
paths:
- firefox

prep-build:
docker:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- attach_workspace:
at: .
- run:
name: build:dist
command: npm run dist
- run:
name: build:debug
command: find dist/ -type f -exec md5sum {} \; | sort -k 2
- save_cache:
key: build-cache-{{ .Revision }}
- persist_to_workspace:
root: .
paths:
- dist
- builds
Expand All @@ -152,32 +135,32 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- attach_workspace:
at: .
- run:
name: build:dist
command: npm run doc
- save_cache:
key: docs-cache-{{ .Revision }}
- persist_to_workspace:
root: .
paths:
- docs/jsdoc
- docs/jsdocs

prep-scss:
docker:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- attach_workspace:
at: .
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
- run:
name: Build for integration tests
command: npm run test:integration:build
- save_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
- persist_to_workspace:
root: .
paths:
- ui/app/css/output

Expand All @@ -186,8 +169,8 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- attach_workspace:
at: .
- run:
name: Test
command: npm run lint
Expand All @@ -197,8 +180,8 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- attach_workspace:
at: .
- run:
name: Test
command: npx nsp check
Expand All @@ -208,10 +191,8 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- attach_workspace:
at: .
- run:
name: test:e2e:chrome
command: npm run test:e2e:chrome
Expand All @@ -224,15 +205,11 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-firefox-
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
name: Install Firefox
command: ./.circleci/scripts/firefox-install
- attach_workspace:
at: .
- run:
name: test:e2e:firefox
command: npm run test:e2e:firefox
Expand All @@ -245,10 +222,8 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- attach_workspace:
at: .
- run:
name: test:e2e:chrome:beta
command: npm run test:e2e:chrome:beta
Expand All @@ -261,15 +236,11 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-firefox-
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
name: Install Firefox
command: ./.circleci/scripts/firefox-install
- attach_workspace:
at: .
- run:
name: test:e2e:firefox:beta
command: npm run test:e2e:firefox:beta
Expand All @@ -282,15 +253,13 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- attach_workspace:
at: .
- run:
name: Test
command: npm run test:screens
- save_cache:
key: job-screens-{{ .Revision }}
- persist_to_workspace:
root: .
paths:
- test-artifacts

Expand All @@ -299,12 +268,8 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- restore_cache:
key: job-screens-{{ .Revision }}
- attach_workspace:
at: .
- store_artifacts:
path: dist/mascara
destination: builds/mascara
Expand All @@ -326,14 +291,8 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: build-cache-{{ .Revision }}
- restore_cache:
key: docs-cache-{{ .Revision }}
- restore_cache:
key: job-screens-{{ .Revision }}
- attach_workspace:
at: .
- run:
name: sentry sourcemaps upload
command: npm run sentry:publish
Expand All @@ -349,32 +308,22 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- attach_workspace:
at: .
- run:
name: test:coverage
command: npm run test:coverage

test-integration-flat-firefox:
environment:
browsers: '["Firefox"]'
docker:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-firefox-
- attach_workspace:
at: .
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
- restore_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
name: Install Firefox
command: ./.circleci/scripts/firefox-install
- run:
name: test:integration:flat
command: npm run test:flat
Expand All @@ -386,38 +335,22 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
- restore_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
- attach_workspace:
at: .
- run:
name: test:integration:flat
command: npm run test:flat

test-integration-mascara-firefox:
environment:
browsers: '["Firefox"]'
docker:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-firefox-
- attach_workspace:
at: .
- run:
name: Install firefox
command: ./.circleci/scripts/firefox-install.sh
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
- restore_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
name: Install Firefox
command: ./.circleci/scripts/firefox-install
- run:
name: test:integration:mascara
command: npm run test:mascara
Expand All @@ -429,14 +362,8 @@ jobs:
- image: circleci/node:8.11.3-browsers
steps:
- checkout
- restore_cache:
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Scss Cache key
# this allows us to checksum against a whole directory
command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
- restore_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
- attach_workspace:
at: .
- run:
name: test:integration:mascara
command: npm run test:mascara
Expand All @@ -447,4 +374,4 @@ jobs:
steps:
- run:
name: All Tests Passed
command: echo 'weew - everything passed!'
command: echo 'weew - everything passed!'
13 changes: 0 additions & 13 deletions .circleci/scripts/firefox-download.sh

This file was deleted.

Loading