Skip to content

Commit af4d415

Browse files
authored
Merge pull request #759 from MyEtherWallet/develop
Tag Release 0.0.8
2 parents eeb315c + 401a57d commit af4d415

File tree

6 files changed

+40
-11
lines changed

6 files changed

+40
-11
lines changed

common/api/shapeshift.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ export const SHAPESHIFT_TOKEN_WHITELIST = [
2121
'FUN',
2222
'RLC',
2323
'TRST',
24-
'GUP',
25-
'ETH'
24+
'GUP'
2625
];
27-
export const SHAPESHIFT_WHITELIST = [...SHAPESHIFT_TOKEN_WHITELIST, 'ETC', 'BTC'];
26+
export const SHAPESHIFT_WHITELIST = [...SHAPESHIFT_TOKEN_WHITELIST, 'ETH', 'ETC', 'BTC'];
2827

2928
class ShapeshiftService {
3029
public whitelist = SHAPESHIFT_WHITELIST;

common/config/data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { EtherscanNode, InfuraNode, RPCNode, Web3Node } from 'libs/nodes';
22
import { networkIdToName } from 'libs/values';
33
export const languages = require('./languages.json');
44
// Displays in the header
5-
export const VERSION = '4.0.0 (Alpha 0.0.7)';
5+
export const VERSION = '4.0.0 (Alpha 0.0.8)';
66
export const N_FACTOR = 1024;
77

88
// Displays at the top of the site, make message empty string to remove.

common/config/tokens/eth.json

+15
Original file line numberDiff line numberDiff line change
@@ -433,5 +433,20 @@
433433
"address": "0xb110ec7b1dcb8fab8dedbf28f53bc63ea5bedd84",
434434
"symbol": "XID",
435435
"decimal": 8
436+
},
437+
{
438+
"address": "0xE41d2489571d322189246DaFA5ebDe1F4699F498",
439+
"symbol": "ZRX",
440+
"decimal": 18
441+
},
442+
{
443+
"address": "0x41e5560054824eA6B0732E656E3Ad64E20e94E45",
444+
"symbol": "CVC",
445+
"decimal": 8
446+
},
447+
{
448+
"address": "0x0AbdAce70D3790235af448C88547603b945604ea",
449+
"symbol": "DNT",
450+
"decimal": 18
436451
}
437452
]

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MyEtherWallet",
3-
"version": "4.0.0-alpha.7",
3+
"version": "4.0.0-alpha.8",
44
"main": "common/index.jsx",
55
"description": "MyEtherWallet v4",
66
"engines": {
@@ -19,7 +19,7 @@
1919
"ethereumjs-util": "5.1.3",
2020
"ethereumjs-wallet": "0.6.0",
2121
"font-awesome": "4.7.0",
22-
"hard-source-webpack-plugin": "0.5.13",
22+
"hard-source-webpack-plugin": "0.5.15",
2323
"hdkey": "0.7.1",
2424
"idna-uts46": "1.1.0",
2525
"jsonschema": "1.2.2",
@@ -92,7 +92,7 @@
9292
"lint-staged": "6.0.0",
9393
"minimist": "1.2.0",
9494
"node-sass": "4.7.2",
95-
"nodemon": "1.14.8",
95+
"nodemon": "1.14.9",
9696
"null-loader": "0.1.1",
9797
"offline-plugin": "4.9.0",
9898
"prettier": "1.9.2",
@@ -114,7 +114,7 @@
114114
"types-rlp": "0.0.1",
115115
"typescript": "2.6.2",
116116
"url-loader": "0.6.2",
117-
"url-search-params-polyfill": "2.0.1",
117+
"url-search-params-polyfill": "2.0.2",
118118
"webpack": "3.10.0",
119119
"webpack-dev-middleware": "2.0.4",
120120
"webpack-hot-middleware": "2.21.0",
@@ -124,9 +124,9 @@
124124
"freezer": "webpack --config=./webpack_config/webpack.freezer.js && node ./dist/freezer.js",
125125
"freezer:validate": "npm run freezer -- --validate",
126126
"db": "nodemon ./db",
127-
"build": "webpack --config webpack_config/webpack.prod.js",
127+
"build": "rimraf dist && webpack --config webpack_config/webpack.prod.js",
128128
"prebuild": "check-node-version --package",
129-
"build:downloadable": "BUILD_DOWNLOADABLE=true webpack --config webpack_config/webpack.prod.js",
129+
"build:downloadable": "BUILD_DOWNLOADABLE=true rimraf dist && webpack --config webpack_config/webpack.prod.js",
130130
"prebuild:demo": "check-node-version --package",
131131
"test:coverage": "jest --config=jest_config/jest.config.json --coverage",
132132
"test": "jest --config=jest_config/jest.config.json",

spec/reducers/swap.spec.ts

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ import {
88
import { normalize } from 'normalizr';
99
import * as schema from 'reducers/swap/schema';
1010
import { TypeKeys } from 'actions/swap/constants';
11+
import tokens from 'config/tokens/eth.json';
12+
import { SHAPESHIFT_TOKEN_WHITELIST } from 'api/shapeshift';
13+
14+
describe('ensure whitelist', () => {
15+
const findToken = (tkn: string) => tokens.find(t => t.symbol === tkn);
16+
SHAPESHIFT_TOKEN_WHITELIST.forEach(t => {
17+
it(`Should find Token ${t}`, () => {
18+
expect(findToken(t)).toBeTruthy();
19+
});
20+
});
21+
});
1122

1223
describe('swap reducer', () => {
1324
const shapeshiftApiResponse = {

webpack_config/webpack.prod.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ base.plugins.push(
6262
'process.env.NODE_ENV': JSON.stringify('production')
6363
}),
6464
new BabelMinifyPlugin({
65+
// Mangle seems to be reusing variable identifiers, causing errors
6566
mangle: false,
66-
propertyLiterals: false
67+
// These two on top of a lodash file are causing illegal characters for
68+
// safari and ios browsers
69+
evaluate: false,
70+
propertyLiterals: false,
6771
}, {
6872
comments: false
6973
}),

0 commit comments

Comments
 (0)