Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1984 commits
Select commit Hold shift + click to select a range
35ce09d
removed parity signer from beta
blurpesec Oct 9, 2019
4747705
Merge pull request #2795 from MyCryptoHQ/mh/remove-parity-signer-temp…
data-go Oct 9, 2019
6f37a54
temporarily remove test accounts until we figure shit out
blurpesec Oct 9, 2019
af4981b
Merge pull request #2796 from MyCryptoHQ/mh/remove-test-accounts
data-go Oct 9, 2019
effabb8
Use truncate and toFixedWithoutZero from utils
Oct 10, 2019
bb41e94
Move swap util functions to helpers
Oct 10, 2019
28f289f
Prevent going to next swap step if no to/from values selected
Oct 11, 2019
662fb63
Move swap types, remove unused vars
Oct 11, 2019
3dfc6d0
Filter accounts based on type and sufficient funds
Oct 11, 2019
b1d4cfa
Merge pull request #108 from MyCryptoHQ/gau
amacar Oct 14, 2019
0e1058e
Merge gau
Oct 14, 2019
4c5bdf1
Move SignTransactionWallets to components
Oct 14, 2019
5760a91
fix view-only wallet add bug
blurpesec Oct 14, 2019
7ea9635
remove copyable from send assets account dropdown and filter viewonly
blurpesec Oct 14, 2019
c83c318
Merge pull request #2800 from MyCryptoHQ/mh/fix-view-only-account-add
blurpesec Oct 14, 2019
1ac6cd8
Merge pull request #2802 from MyCryptoHQ/mh/remove-copyable-from-send…
blurpesec Oct 14, 2019
58a7e1a
deactivcate routes for beta
vilsbole Oct 10, 2019
562d29d
remove swap link from dashboard actions
vilsbole Oct 15, 2019
aea5868
fix txReceipt for metamask
blurpesec Oct 15, 2019
d6a5310
Merge pull request #2803 from MyCryptoHQ/mh/fix-txreceipt-with-metamask
Oct 15, 2019
673feaa
Merge pull request #2797 from MyCryptoHQ/ev/beta-links
blurpesec Oct 15, 2019
746dd1e
switched order of to and from addresses in send assets flow Confirm a…
blurpesec Oct 15, 2019
65c9ffa
Merge branch 'gau' into develop
vilsbole Oct 15, 2019
51ff4de
remove old analytics service
vilsbole Oct 15, 2019
53430c8
fix bug with networkid not being name
blurpesec Oct 15, 2019
5c50ba9
solve types for moment.tz
vilsbole Oct 15, 2019
979a104
solve tsc errors after merge
vilsbole Oct 15, 2019
b756d6c
Swap translations, type fixes,
Oct 15, 2019
a5746fb
fixed isNaN asset values in receiveAssets flow
blurpesec Oct 15, 2019
f2af120
combined account dropdowns
blurpesec Oct 15, 2019
5f7a8e8
Fixed back button in Send Assets panel
FrederikBolding Oct 15, 2019
d8a9c98
Used ROUTE_PATHS for Send and Receive back redirects
FrederikBolding Oct 15, 2019
d45d15f
update rate polling worker on asset updates
blurpesec Oct 15, 2019
fb09513
Merge pull request #2805 from MyCryptoHQ/mh/add-network-chainId-lookup
Oct 16, 2019
934e1be
Merge pull request #2806 from MyCryptoHQ/mh/switch-send-assets-to-and…
Oct 16, 2019
0a91536
Merge pull request #2807 from MyCryptoHQ/mh/fix-isNaN-in-receive-assets
Oct 16, 2019
5954d37
Merge pull request #2811 from MyCryptoHQ/mh/fix-rates-lookup-on-new-a…
Oct 16, 2019
43e108c
Merge branch 'gau' into fixed-back-button-in-send-assets
Oct 16, 2019
68e139d
Added isTestnet field to Network interface
FrederikBolding Oct 16, 2019
4e702e8
Fixed missing gas text when sending testnet assets
FrederikBolding Oct 16, 2019
1bf8a51
Show loader when waiting for allowance transaction to be mined
Oct 16, 2019
8f78e90
Added route redirection for pages with required accounts
FrederikBolding Oct 16, 2019
a934712
Merge pull request #2799 from MyCryptoHQ/release/1.7.3
wtzb Oct 17, 2019
7a03000
Prevent swaping from asset to same asset
Oct 17, 2019
cb6ce63
Merge pull request #110 from MyCryptoHQ/gau
amacar Oct 17, 2019
7df9416
Merge from gau
Oct 17, 2019
6777f75
Set correct asset array at page load
Oct 17, 2019
f02685e
Fix swap imports
Oct 17, 2019
a69794c
Merge pull request #2809 from FrederikBolding/fixed-back-button-in-se…
Oct 18, 2019
b4a530e
Merge pull request #2812 from FrederikBolding/showed-gas-text-for-tes…
Oct 18, 2019
24a70c5
Merge pull request #2813 from FrederikBolding/add-redirection-for-no-…
Oct 18, 2019
33b25cf
Merge branch 'develop' into ev/merge-gau-into-develop
vilsbole Oct 18, 2019
75bb0f3
Merge branch 'gau' into ev/merge-gau-into-develop
vilsbole Oct 18, 2019
67ab1a0
working reimplementation of deterministic wallets in add account
blurpesec Oct 18, 2019
8ba5ea3
clean up a bit
blurpesec Oct 18, 2019
af693cb
port view-only wallets out of redux
blurpesec Oct 18, 2019
37600c8
Removed shepherd from web3 walletservice
FrederikBolding Oct 18, 2019
8e7020d
Merge pull request #2815 from MyCryptoHQ/mh/change-hd-wallet-add-account
Oct 18, 2019
b96a18b
Merge pull request #2816 from FrederikBolding/removed-shepherd-from-web3
Oct 18, 2019
bf25717
Merge branch 'gau' into ev/merge-gau-into-develop
vilsbole Oct 18, 2019
7cbc752
Removed a bunch of legacy code for shepherd
FrederikBolding Oct 21, 2019
715346b
Removed test snapshot for removed legacy code
FrederikBolding Oct 21, 2019
799e8a2
Merge pull request #2818 from FrederikBolding/stripped-out-shepherd-l…
Oct 21, 2019
da456ca
Merge branch 'gau' into ev/merge-gau-into-develop
vilsbole Oct 21, 2019
4c96990
add @types/btoa
vilsbole Oct 21, 2019
c01e20c
Remove shapeshift and 0x
Oct 21, 2019
8c4bbe3
Add swap back to routes
Oct 21, 2019
04974a5
Revert removed csp settings
Oct 21, 2019
cf3ef0e
Remove 0x external script
Oct 21, 2019
28e36f2
Merge pull request #2804 from MyCryptoHQ/ev/merge-gau-into-develop
blurpesec Oct 21, 2019
baf8638
Merge pull request #2820 from MyCryptoHQ/develop
Oct 21, 2019
add3313
Add error handling to swap assets form
PeterZlodej Oct 22, 2019
166c2e2
Merge pull request #113 from MyCryptoHQ/master
amacar Oct 22, 2019
2bfd900
Merge
PeterZlodej Oct 22, 2019
a5ce82c
Merge pull request #114 from PeterZlodej/feature/swap-assets-flow
amacar Oct 22, 2019
4806434
Merge pull request #115 from amacar/master
amacar Oct 22, 2019
541df3a
Added missing latest news link
FrederikBolding Oct 23, 2019
4050634
Added new links to new account notification
FrederikBolding Oct 23, 2019
bd45637
Added nonce link + formatting
FrederikBolding Oct 23, 2019
f20574e
Added help links for Ledger and Trezor
FrederikBolding Oct 23, 2019
0b90f0e
Added ref links for Trezor and Ledger
FrederikBolding Oct 23, 2019
08ac858
Merge pull request #2823 from MyCryptoHQ/fix-broken-links
blurpesec Oct 24, 2019
b01f3c4
Use proxy contract for swap
Oct 24, 2019
6b8bbcf
Merge branch 'master' of https://github.com/MyCryptoHQ/MyCrypto into …
Oct 24, 2019
8c93bea
Added variable for the inactivity time var
409H Oct 14, 2019
c8db780
Added logic to put the inactivity timer variable into the template to…
409H Oct 14, 2019
6e7db53
Fixed SettingsContext hook and used moment for formatting
FrederikBolding Oct 24, 2019
c1f6e09
Used AddressBookContext for creating address book entries
FrederikBolding Oct 24, 2019
58f9e57
Merge pull request #2801 from 409H/bugfix/inactivity-timer
Oct 28, 2019
0aa2cb5
Merge pull request #2825 from MyCryptoHQ/fix-address-book-issue
Oct 28, 2019
f4c6c35
Updated 'learn more' link on onboarding notification (#2826)
FrederikBolding Oct 28, 2019
9868021
Fixed missing variable on Web3 install translation (#2827)
FrederikBolding Oct 28, 2019
e6cf4f8
Rewrote parts of README (#2821)
blurpesec Oct 28, 2019
3697b93
Remove freezer
Mrtenz Oct 16, 2019
13d397f
Remove derivation-checker configuration
Mrtenz Oct 16, 2019
a00d55b
Refactor Webpack configuration and scripts
Mrtenz Oct 16, 2019
3253c3d
Remove Jenkins scripts
Mrtenz Oct 17, 2019
84d5159
Update webpack-related dependencies
Mrtenz Oct 17, 2019
65a0c90
Fix Electron configs
Mrtenz Oct 18, 2019
ad7ce73
Check for TypeScript and TSLint errors on build time
Mrtenz Oct 18, 2019
fa2d786
Fixed tslint and tscheck commands
FrederikBolding Oct 24, 2019
e76b5fb
Updated yarn.lock
FrederikBolding Oct 24, 2019
828fb78
Hide Babel warnings from output
Mrtenz Oct 25, 2019
98b54e6
Updated currency formatting (#2828)
FrederikBolding Oct 28, 2019
2e8325f
mh/edit dashboard action buttons copy (#2829)
blurpesec Oct 28, 2019
e8c3a31
Added missing latest news link
FrederikBolding Oct 23, 2019
5366eb6
Added new links to new account notification
FrederikBolding Oct 23, 2019
283065b
Added nonce link + formatting
FrederikBolding Oct 23, 2019
f9db635
Added help links for Ledger and Trezor
FrederikBolding Oct 23, 2019
853347f
Added ref links for Trezor and Ledger
FrederikBolding Oct 23, 2019
a2a91af
Added variable for the inactivity time var
409H Oct 14, 2019
943ed5e
Added logic to put the inactivity timer variable into the template to…
409H Oct 14, 2019
ba68c08
Fixed SettingsContext hook and used moment for formatting
FrederikBolding Oct 24, 2019
a00ef56
Used AddressBookContext for creating address book entries
FrederikBolding Oct 24, 2019
8c0834b
Updated 'learn more' link on onboarding notification (#2826)
FrederikBolding Oct 28, 2019
f412e16
Fixed missing variable on Web3 install translation (#2827)
FrederikBolding Oct 28, 2019
166b770
Rewrote parts of README (#2821)
blurpesec Oct 28, 2019
69215ae
Remove freezer
Mrtenz Oct 16, 2019
5cc7860
Remove derivation-checker configuration
Mrtenz Oct 16, 2019
fc6516a
Refactor Webpack configuration and scripts
Mrtenz Oct 16, 2019
5a7bd9e
Remove Jenkins scripts
Mrtenz Oct 17, 2019
c1dedbd
Update webpack-related dependencies
Mrtenz Oct 17, 2019
a33b548
Fix Electron configs
Mrtenz Oct 18, 2019
e0505ec
Check for TypeScript and TSLint errors on build time
Mrtenz Oct 18, 2019
26808e9
Fixed tslint and tscheck commands
FrederikBolding Oct 24, 2019
d0aa262
Updated yarn.lock
FrederikBolding Oct 24, 2019
73fb059
Hide Babel warnings from output
Mrtenz Oct 25, 2019
b2bd8e5
Updated currency formatting (#2828)
FrederikBolding Oct 28, 2019
f91ea5e
mh/edit dashboard action buttons copy (#2829)
blurpesec Oct 28, 2019
c16d4f8
Merge from master
Oct 29, 2019
9f73c88
Update imports orders
Oct 29, 2019
63a535a
Merge from master
Oct 29, 2019
45adfd4
Fixed styling of address book notes
FrederikBolding Oct 28, 2019
687c440
Made broadcast transaction input a textarea
FrederikBolding Oct 28, 2019
2f747b5
Fixed token contract address label
FrederikBolding Oct 28, 2019
5b4455a
Made sure LastPass stops autofilling address fields
FrederikBolding Oct 28, 2019
dcabc66
Fixed a few texts
FrederikBolding Oct 28, 2019
3206bde
Fixed text on WalletBreakdown
FrederikBolding Oct 28, 2019
f4a9cad
Added network to address book settings (#2831)
FrederikBolding Oct 30, 2019
566494b
Update EGEM network url (#2822)
r2clan Oct 30, 2019
de44de4
Update @mycrypto/ui from 0.18.3 to 0.20.2 (#2833)
LinFeiLong Oct 31, 2019
3aa277a
Update SECURITY.md (#2836)
409H Nov 1, 2019
34536e2
Use typography for text
Nov 4, 2019
9709a5f
Use currency component
Nov 4, 2019
16a6ab9
Avoid modifying input parameter
Nov 4, 2019
1b9e99a
Use WalletType for Address Book default names (#2838)
FrederikBolding Nov 5, 2019
5b4eac0
Refactor token update script (#2841)
Mrtenz Nov 5, 2019
911112a
Fixed currency formatting
FrederikBolding Nov 4, 2019
93d9a19
Use reducer pattern for state handling
Nov 6, 2019
4673852
extract DevTools from Root (#2837)
Nov 6, 2019
7fb3d8a
Harmonize environment and platform checks (#2835)
Nov 7, 2019
a689970
Activate seed accounts for dev env (#2834)
Nov 7, 2019
b2e553f
Send Assets input improvements (#2845)
FrederikBolding Nov 7, 2019
11c8c70
Show chosen asset on AccountDropdown in Send flow (#2832)
FrederikBolding Nov 7, 2019
79290d7
Merge from master
Nov 7, 2019
49b9684
Show correct asset in account selector
Nov 7, 2019
fcd932c
Merge pull request #2814 from amacar/swap-tokens-provider
Nov 8, 2019
4346b6a
copy over all needed components from prod codebase
blurpesec Oct 22, 2019
9e1156c
remove production utils and configs from gau codebase
blurpesec Oct 22, 2019
5d3c4a8
remove some production features from v2
blurpesec Oct 23, 2019
d74cba7
remove prod libs from v2
blurpesec Oct 23, 2019
4795f86
migrate translations, switch language selection to save to local cache
blurpesec Oct 24, 2019
55dc3c1
fix some issues with imports
blurpesec Oct 31, 2019
67def1e
migrate containers to v2
blurpesec Nov 1, 2019
61b64a0
remove translateRawV2
blurpesec Nov 1, 2019
4160891
removed production code from root files
blurpesec Nov 1, 2019
56c38d7
updated translation files in v2 translation functions
blurpesec Nov 1, 2019
6f57286
fixed footer styling
blurpesec Nov 7, 2019
e13d743
added wrapper to footer
blurpesec Nov 7, 2019
e60b9e9
fixed header ux bugs
blurpesec Nov 7, 2019
b7da317
remove extra "d"
blurpesec Nov 7, 2019
f5e4413
Remove BuyAndExchange
vilsbole Nov 8, 2019
df44789
Allow only one Header dropdown at a time
vilsbole Nov 8, 2019
895d5e5
Add name field to tokens (#2852)
Mrtenz Nov 12, 2019
d975bf8
Update tokens in v2 folder (#2853)
Mrtenz Nov 12, 2019
d10b804
Use Cache instead of LocalCache (#2850)
FrederikBolding Nov 13, 2019
219e65b
AssetDropdown for ReceiveAssets (#2839)
FrederikBolding Nov 13, 2019
a3d3df5
Mock axios for analytics spec (#2847)
Nov 13, 2019
3506a7c
Remove HardSourceWebpackPlugin (#2856)
Nov 13, 2019
3d7f22c
Remove legacy snapshots
vilsbole Nov 13, 2019
1bf018e
Remove shapeshift spec
vilsbole Nov 13, 2019
4935335
Refactor contract config spec
vilsbole Nov 13, 2019
78a2a40
Use jest expect for token config test
vilsbole Nov 13, 2019
c001f8f
Upgrade package to remove deprecation warning
vilsbole Nov 13, 2019
8a87211
Remove saga and reducer specs
vilsbole Nov 13, 2019
d33ff9d
Remove other actions, selectors, reducers, and shepard specs
vilsbole Nov 13, 2019
28a6f7a
Fix electron webpack build (#2858)
LinFeiLong Nov 14, 2019
a5aa47b
Bump jquery from 3.3.1 to 3.4.0 (#2819)
dependabot[bot] Nov 14, 2019
8e8e312
Rename localstores constant and key
vilsbole Nov 14, 2019
fc27472
Restore dev seed
vilsbole Nov 14, 2019
6872775
Remove ttl from Cache
vilsbole Nov 14, 2019
1ed6351
Rename types for data persistence
vilsbole Nov 14, 2019
6e12704
fix createwithid bug (#2860)
blurpesec Nov 14, 2019
12e1b17
Add Unlock Protocol detection and notification (#2851)
blurpesec Nov 18, 2019
24b589a
Add delete confirmation to AccountList and AddressBook (#2787)
Sonicrida Nov 18, 2019
6317a46
Add initial implementation of tx history table (#2854)
blurpesec Nov 23, 2019
bbb2457
Add toasts (#2862)
FrederikBolding Nov 25, 2019
f34ccf2
Improve CI with Github Actions [ch3821] (#2871)
LinFeiLong Nov 26, 2019
d390729
Removed legacy send flow (#2875)
FrederikBolding Nov 27, 2019
749800a
Removed legacy misc containers (#2876)
FrederikBolding Nov 27, 2019
ae0ab7b
DevMode modal [ch3557] (#2873)
LinFeiLong Nov 27, 2019
cef921b
Make the contentpanel wider and see how it goes (#2872)
tayvano Nov 27, 2019
8e18152
ConfirmTransaction Styling Tweaks (#2874)
tayvano Nov 27, 2019
74a5b20
Removed more legacy send flow (#2877)
FrederikBolding Nov 27, 2019
0676039
Removed legacy wallet handling code (#2878)
FrederikBolding Nov 28, 2019
d6a4eed
Removed a bunch of legacy features (#2881)
FrederikBolding Dec 2, 2019
385da34
Removed some legacy UI elements (#2882)
FrederikBolding Dec 3, 2019
42a75dc
Removed legacy components & use v2/translation method (#2886)
FrederikBolding Dec 3, 2019
19d101f
Copy Changes (#2887)
blurpesec Dec 4, 2019
89c0e07
Removed legacy libs and things dependant on them (#2885)
FrederikBolding Dec 5, 2019
60fbcc1
Improve non-Metamask web3 account ux (#2890)
blurpesec Dec 6, 2019
71495af
Use coingecko and MyCryptoHQ/assets (#2867)
blurpesec Dec 7, 2019
d4d4d55
Add INV & DOC token to RSK network (#2884)
alepc253 Dec 8, 2019
5837a04
Removed remaining legacy features and translation (#2893)
FrederikBolding Dec 8, 2019
6920fc5
Removed last parts of legacy code (#2895)
FrederikBolding Dec 9, 2019
7a73882
Make header draggable for Electron (#2892)
Dec 9, 2019
6e32625
Fixed import issue for Electron (#2898)
FrederikBolding Dec 10, 2019
aa2c72d
Update ci.yml (#2900)
LinFeiLong Dec 10, 2019
67f3b88
Find/Fix implementations of steppers component (#2904)
LinFeiLong Dec 12, 2019
472395f
Merge legacy and v2 types (#2905)
FrederikBolding Dec 12, 2019
78ea3c6
Review project assets (#2906)
FrederikBolding Dec 13, 2019
35f3f71
fl/update dev dependencies (#2899)
LinFeiLong Dec 13, 2019
324e16c
fl/update electron to 6.1.5 (#2903)
LinFeiLong Dec 13, 2019
4c9e50e
Remove unused dependencies (#2910)
FrederikBolding Dec 13, 2019
3c083e4
Updated readme to new node version
blurpesec Dec 15, 2019
51fa33a
Interact with contracts flow (#2888)
PeterZlodej Dec 16, 2019
5946d67
Fixed missing translations (#2919)
FrederikBolding Dec 17, 2019
8814201
Klemenkunstek/ch4136/update electron (#2907)
kunstefix Dec 17, 2019
b7881af
Added check to make sure ENS resolved address is valid (#2908)
FrederikBolding Dec 17, 2019
34e0888
Remove unused code from 'shared' and 'electron-app' folders (#2914)
kunstefix Dec 17, 2019
766168c
Translation / Copy Updates (#2922)
tayvano Dec 20, 2019
6655a33
Disable Analytics in Dev Environment (#2925)
LinFeiLong Dec 20, 2019
9a5f914
Fix 'export not found' warnings (#2921)
LinFeiLong Dec 20, 2019
84ca8af
Merged address components (#2931)
FrederikBolding Dec 21, 2019
e314bf5
Added addressfield identicon (#2932)
FrederikBolding Dec 23, 2019
4628241
Added error message for swap api failure (#2923)
FrederikBolding Dec 23, 2019
0d59990
Fixed Styling for Dashboard [ch4108] (#2939)
GuillaumeRx Dec 31, 2019
e38c03e
Fixed small styling issues (#2941)
FrederikBolding Dec 31, 2019
44184a7
Added automatic scan for tokens after adding a new account (#2940)
FrederikBolding Dec 31, 2019
1f8465a
Separate localstorage from application state (#2869)
Jan 7, 2020
f21a9a2
Use selected language from local storage, removed unused translations…
amacar Jan 7, 2020
014c974
Triggering preload after Electron has loaded its internal initializat…
Jan 7, 2020
83c17bb
Disable nodeIntegration and enable contextIsolation (#2945)
LinFeiLong Jan 7, 2020
e7a2d90
Use stateMutability payable param if exists (#2935)
amacar Jan 7, 2020
28233fb
Use MYC's fork version of uuid-by-string (#2930)
Jan 8, 2020
7d674f0
Fixed some Ledger issues (#2934)
FrederikBolding Jan 8, 2020
05f0c52
re-enable analytics for development environment (#2946)
LinFeiLong Jan 8, 2020
b33ec78
Deploy contracts feature updates (#2915)
amacar Jan 9, 2020
6aba66b
Prefill interact with contracts data from URL (#2920)
amacar Jan 9, 2020
b276f4e
Fix Chart Hover [ch4108] (#2949)
GuillaumeRx Jan 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
* text=auto eol=lf

*.woff binary
*.woff2 binary

*.png binary
*.jpg binary
*.icns binary
*.ico binary
*.gif binary
283 changes: 283 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
name: GitHub CI

on: [push]

jobs:
## WINDOWS-PREBUILD START ##
pre-build-and-build-windows:
name: Build el:win
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Retrieve project from the git branch
uses: actions/checkout@v1

- name: Print current engines' versions
run: >
echo "node: $(node -v)";
echo "npm: $(npm -v)";
echo "yarn: $(yarn -v)";
echo "python: $(python -V)";

- name: Retrieve engines' versions from package.json to env variables
id: engines
run: >
$hashtable = Get-Content -Raw -Path ./package.json | ConvertFrom-Json -AsHashtable;
echo $hashtable.engines;
$nodeVersion = $hashtable.engines.node;
$npmVersion = $hashtable.engines.npm;
$yarnVersion = $hashtable.engines.yarn;
Write-Output "##[set-output name=NODE_VERSION;]$($nodeVersion)";
Write-Output "##[set-output name=NPM_VERSION;]$($npmVersion)";
Write-Output "##[set-output name=YARN_VERSION;]$($yarnVersion)";

- name: Setup node ${{ steps.engines.outputs.NODE_VERSION }}
uses: actions/setup-node@master
with:
node-version: ${{ steps.engines.outputs.NODE_VERSION }}

- run: node -v
- name: install node tools
run: npm install --global --production windows-build-tools@4.0.0
- name: install node-gyp
run: npm install --global node-gyp@latest
- name: Set node config to use python2.7
run: npm config set python python2.7
- name: Set node config to set msvs_version to 2015
run: npm config set msvs_version 2015
- name: Work around for Windows Server 2019
run: set path=%path%;'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin'

- name: Cache node modules
id: cache
uses: actions/cache@v1
with:
path: node_modules
## Check cache based on yarn.lock hashfile
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-

- name: Install Dependencies
## If no cache is found, install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install

- name: yarn tslint
run: yarn tslint

- name: yarn tscheck
run: yarn tscheck

- name: yarn test:coverage -- --maxWorkers=2
run: yarn test:coverage -- --maxWorkers=2

## NOT WORKING
# - name: yarn report-coverage
# run: yarn report-coverage

- name: yarn build:electron:windows
run: yarn build:electron:windows

- name: ls dist/electron-builds
run: ls dist/electron-builds

- name: Read MyCrypto version from package.json
id: version
run: $json = Get-Content package.json | ConvertFrom-Json; Write-Output "##[set-output name=VERSION;]$($json.version)"

- name: Save windows_${{ steps.version.outputs.VERSION }}_MyCrypto.exe to artifacts
uses: actions/upload-artifact@v1
with:
name: "windows_${{ steps.version.outputs.VERSION }}_MyCrypto.exe"
path: "dist/electron-builds/MyCrypto Setup ${{ steps.version.outputs.VERSION }}.exe"
# ## WINDOWS-PREBUILD END ##

pre-build:
name: Pre-build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
macOS-latest
# ubuntu-latest
]
env:
ELECTRON_CACHE: $HOME/.cache/electron
ELECTRON_BUILDER_CACHE: $HOME/.cache/electron-builder
steps:
- name: Retrieves project from the git branch
uses: actions/checkout@v1

# - name: Slack Notification
# if: matrix.os == 'ubuntu-latest'
# uses: rtCamp/action-slack-notify@master
# env:
# # SLACK_CHANNEL: general
# SLACK_COLOR: '#3278BD'
# # SLACK_ICON: https://github.com/rtCamp.png?size=48
# SLACK_MESSAGE: 'Post Content :rocket:'
# SLACK_TITLE: Post Title
# SLACK_USERNAME: rtCamp
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat package.json | grep '\"node\":' | sed 's/^ *//;s/ *$//;s/\"node\":\ \"//;s/\",//' )"
id: nvm

- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v1
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- run: node --version; npm --version; yarn --version

- name: Cache node modules
id: cache
uses: actions/cache@v1
with:
path: node_modules
## Check cache based on yarn.lock hashfile
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-

- name: Install Dependencies
## If no cache is found, install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install

- name: yarn tslint
run: yarn tslint

- name: yarn tscheck
run: yarn tscheck

- name: yarn test:coverage -- --maxWorkers=2
run: yarn test:coverage -- --maxWorkers=2

## NOT WORKING
# - name: yarn report-coverage
# run: yarn report-coverage

electron-osx:
name: Build el:osx
## Executes only if pre-build is true
needs: [pre-build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest]
env:
ELECTRON_CACHE: $HOME/.cache/electron
ELECTRON_BUILDER_CACHE: $HOME/.cache/electron-builder

steps:
- name: Retrieves project from the git branch
uses: actions/checkout@v1

- name: Retrieve node version from .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat package.json | grep '\"node\":' | sed 's/^ *//;s/ *$//;s/\"node\":\ \"//;s/\",//')"
id: nvm

- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v1
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Restoring node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}

- name: yarn build:electron:osx
run: yarn build:electron:osx

- name: ls -la dist/electron-builds
run: ls -la dist/electron-builds

- name: Read app version
id: version
run: echo "##[set-output name=VERSION;]$(cat package.json | grep -m1 version | sed 's/...version....//' | sed 's/.\{2\}$//')"

- name: "Save standalone_${{ steps.version.outputs.VERSION }}_MyCrypto.zip to artifacts"
uses: actions/upload-artifact@v1
with:
name: "standalone_${{ steps.version.outputs.VERSION }}_MyCrypto.zip"
path: "dist/electron-builds/MyCrypto-${{ steps.version.outputs.VERSION }}-mac.zip"
- name: "Save mac_${{ steps.version.outputs.VERSION }}_MyCrypto.dmg to artifacts"
uses: actions/upload-artifact@v1
with:
name: "mac_${{ steps.version.outputs.VERSION }}_MyCrypto.dmg"
path: "dist/electron-builds/MyCrypto-${{ steps.version.outputs.VERSION }}.dmg"

electron-linux:
name: Build el:linux
# Executes only if pre-build is true
needs: [pre-build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
## Uncomment to run linux build on macOS
macOS-latest
# ubuntu-latest
]
env:
ELECTRON_CACHE: $HOME/.cache/electron
ELECTRON_BUILDER_CACHE: $HOME/.cache/electron-builder

steps:
- name: Retrieves project from the git branch
uses: actions/checkout@v1

- name: Retrieve node version from .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat package.json | grep '\"node\":' | sed 's/^ *//;s/ *$//;s/\"node\":\ \"//;s/\",//')"
id: nvm

- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v1
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
## Check cache based on yarn.lock hashfile
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-

- name: yarn build:electron:linux
run: yarn build:electron:linux

- name: ls -la dist/electron-builds
run: ls -la dist/electron-builds

- name: Read app version
id: version
run: echo "##[set-output name=VERSION;]$(cat package.json | grep -m1 version | sed 's/...version....//' | sed 's/.\{2\}$//')"

- name: "Save linux-i386_${{ steps.version.outputs.VERSION }}_MyCrypto.AppImage to artifacts"
uses: actions/upload-artifact@v1
with:
name: "linux-i386_${{ steps.version.outputs.VERSION }}_MyCrypto.AppImage"
path: "dist/electron-builds/MyCrypto-${{ steps.version.outputs.VERSION }}-i386.AppImage"

- name: "Save linus-x86-64_${{ steps.version.outputs.VERSION }}-MyCrypto.AppImage to artifacts"
uses: actions/upload-artifact@v1
with:
name: "linus-x86-64_${{ steps.version.outputs.VERSION }}-MyCrypto.AppImage"
path: "dist/electron-builds/MyCrypto-${{ steps.version.outputs.VERSION }}.AppImage"

## TODO: Add "build electron:windows from Mac or Linux"
10 changes: 10 additions & 0 deletions .modernizrrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
"enableJSClass": false,
"enableClasses": false,
"minify": true,
"feature-detects": [
"css/flexbox",
"css/flexwrap",
"storage/localstorage"
]
};
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.16.0
v10.13.0
52 changes: 8 additions & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,18 @@
language: node_js
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- g++-4.8-multilib
- gcc-multilib
- libusb-1.0-0-dev
- libudev-dev
matrix:
include:
- os: osx
osx_image: xcode9.3
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- os: linux
dist: trusty
sudo: required
services: docker
- os: osx
osx_image: xcode9.3
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
fast_finish: true
cache:
yarn: true
directories:
- node_modules
- "$HOME/.cache/electron"
- "$HOME/.cache/electron-builder"
before_cache:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
rm -rf $HOME/.cache/electron-builder/wine
fi
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CHROME_BIN=chromium-browser
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
# uncomment once integration tests are included in CI
# docker pull dternyak/eth-priv-to-addr:latest
sudo apt-get install libusb-1.0
fi
install:
- yarn --silent
- yarn --silent
before_script:
- chmod +x ./travis-scripts/test-{linux,osx}.sh
- chmod +x ./travis-scripts/test-osx.sh
script:
- "./travis-scripts/test-linux.sh"
- "./travis-scripts/test-osx.sh"
- './travis-scripts/test-osx.sh'
notifications:
email:
on_success: never
Expand Down
Loading