aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-05-11 06:44:47 +0800
committerDan Finlay <somniac@me.com>2016-05-11 06:44:47 +0800
commit30831be13764e38f0c4918808ebc8b583c736958 (patch)
treec190b6bee19239d8360b4dc995f0c178c4f9415c /ui/app/actions.js
parentab273ba4443f83d81d3530bc18d14b1795f54d0b (diff)
parent80c6f12839452c9a54c91dbefa411c30fc65c316 (diff)
downloadtangerine-wallet-browser-30831be13764e38f0c4918808ebc8b583c736958.tar
tangerine-wallet-browser-30831be13764e38f0c4918808ebc8b583c736958.tar.gz
tangerine-wallet-browser-30831be13764e38f0c4918808ebc8b583c736958.tar.bz2
tangerine-wallet-browser-30831be13764e38f0c4918808ebc8b583c736958.tar.lz
tangerine-wallet-browser-30831be13764e38f0c4918808ebc8b583c736958.tar.xz
tangerine-wallet-browser-30831be13764e38f0c4918808ebc8b583c736958.tar.zst
tangerine-wallet-browser-30831be13764e38f0c4918808ebc8b583c736958.zip
Merge pull request #182 from MetaMask/EasilyConfigurableProviders
Easily configurable providers
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 5c5805c29..dbcf3e577 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -77,10 +77,12 @@ var actions = {
// config screen
SHOW_CONFIG_PAGE: 'SHOW_CONFIG_PAGE',
SET_RPC_TARGET: 'SET_RPC_TARGET',
+ SET_PROVIDER_TYPE: 'SET_PROVIDER_TYPE',
USE_ETHERSCAN_PROVIDER: 'USE_ETHERSCAN_PROVIDER',
useEtherscanProvider: useEtherscanProvider,
showConfigPage: showConfigPage,
setRpcTarget: setRpcTarget,
+ setProviderType: setProviderType,
// hacky - need a way to get a reference to account manager
_setAccountManager: _setAccountManager,
// loading overlay
@@ -369,6 +371,14 @@ function setRpcTarget(newRpc) {
}
}
+function setProviderType(type) {
+ _accountManager.setProviderType(type)
+ return {
+ type: this.SET_PROVIDER_TYPE,
+ value: type,
+ }
+}
+
function useEtherscanProvider() {
_accountManager.useEtherscanProvider()
return {