-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #348 from gagarin55/import-contract
Store tokens contract in the vault
- Loading branch information
Showing
8 changed files
with
60 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
EMERALD_CLI_VER=0.13.0 | ||
EMERALD_CLI_VER=0.15.0 | ||
|
||
set -e | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"gagarin55 <[email protected]>", | ||
"Isaac Ardis" | ||
], | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Emerald - Ethereum Classic Wallet", | ||
"main": "./electron/main.js", | ||
"moduleRoots": [ | ||
|
@@ -204,6 +204,7 @@ | |
"<rootDir>/src/__mocks__/localStorageMock.js" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"tokenReducers.test.js", | ||
"historyReducers.test.js", | ||
"add.test.js", | ||
"launcherReducers.test.js", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
const ActionTypes = { | ||
SET_TOKEN_BALANCE: 'ACCOUNT/SET_TOKEN_BALANCE', | ||
SET_INFO: 'TOKEN/SET_INFO', | ||
ADD_TOKEN: 'TOKEN/ADD_TOKEN', | ||
SET_LIST: 'TOKEN/SET_LIST', | ||
}; | ||
|
||
export default ActionTypes; | ||
export default ActionTypes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import reducer from './tokenReducers'; | ||
import ActionTypes from './actionTypes'; | ||
|
||
describe('tokenReducer', () => { | ||
it('ADD_TOKEN should not add same token twice', () => { | ||
// prepare | ||
let state = reducer(null, {}); | ||
|
||
state = reducer(state, { | ||
type: ActionTypes.ADD_TOKEN, | ||
address: '0x1', | ||
name: 'n1', | ||
}); | ||
|
||
// do | ||
state = reducer(state, { | ||
type: ActionTypes.ADD_TOKEN, | ||
address: '0x1', | ||
name: 'n1', | ||
}); | ||
|
||
// assert | ||
expect(state.get('tokens').size).toEqual(1); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const version = '0.5.0 Beta 2'; | ||
const version = '0.6.0 Beta 3'; | ||
|
||
export default version; |