-
Notifications
You must be signed in to change notification settings - Fork 0
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
Merge from 1Hive/aragon #15
base: develop
Are you sure you want to change the base?
Changes from all commits
d8be4ec
1ac553f
b006b2d
ac15347
4e675a6
c1f75d4
825c8c9
3a789de
f682766
b26f805
d8da9e9
65872e6
0ecc931
0700536
b17636e
2f63978
2eb40da
4e3a237
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import Aragon, { | |
ensResolve, | ||
getRecommendedGasLimit, | ||
providers, | ||
} from '@aragon/wrapper' | ||
} from '@1hive/wrapper' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing semicolon. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing semicolon. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing semicolon. |
||
import { | ||
appOverrides, | ||
sortAppsPair, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ export const networkConfigs = { | |
localEnsRegistryAddress || '0xaafca6b0c89521752e559650206d7c925fd0e530', | ||
}, | ||
nodes: { | ||
defaultEth: 'wss://xdai.poanetwork.dev/wss', | ||
defaultEth: 'wss://rpc.gnosischain.com/wss', | ||
}, | ||
settings: { | ||
chainId: 100, | ||
|
@@ -114,6 +114,27 @@ export const networkConfigs = { | |
portisDappId ? { id: 'portis', conf: portisDappId } : null, | ||
].filter(p => p), | ||
}, | ||
polygon: { | ||
addresses: { | ||
ensRegistry: | ||
localEnsRegistryAddress || '0x4E065c622d584Fbe5D9078C3081840155FA69581', | ||
}, | ||
nodes: { | ||
defaultEth: 'wss://rpc-mainnet.matic.network', | ||
}, | ||
settings: { | ||
chainId: 137, | ||
name: 'Polygon', | ||
shortName: 'polygon', | ||
type: 'private', | ||
live: true, | ||
}, | ||
providers: [ | ||
{ id: 'provided' }, | ||
{ id: 'frame' }, | ||
portisDappId ? { id: 'portis', conf: portisDappId } : null, | ||
].filter(p => p), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6'). |
||
}, | ||
unknown: { | ||
addresses: { | ||
ensRegistry: localEnsRegistryAddress, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,11 @@ import Header from '../Header/Header' | |
import OpenOrg from './OpenOrg' | ||
import Suggestions from './Suggestions' | ||
import WelcomeAction from './WelcomeAction' | ||
import { setDefaultEthNode, setEthNetworkType } from '../../local-settings' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
|
||
import actionCreate from './assets/action-create.png' | ||
import actionOpen from './assets/action-open.png' | ||
import { getNetworkConfig } from '../../network-config' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
|
||
const Welcome = React.memo(function Welcome({ | ||
createError, | ||
|
@@ -24,16 +26,21 @@ const Welcome = React.memo(function Welcome({ | |
|
||
const selectorNetworksSorted = useMemo(() => { | ||
return selectorNetworks | ||
.map(([type, name, url]) => ({ type, name, url })) | ||
.map(([chainId, type, name, url]) => ({ chainId, type, name, url })) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6'). |
||
.sort((a, b) => { | ||
if (b.type === network.type) return 1 | ||
if (a.type === network.type) return -1 | ||
if (b.chainId === network.chainId) return 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing semicolon. |
||
if (a.chainId === network.chainId) return -1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing semicolon. |
||
return 0 | ||
}) | ||
}, [selectorNetworks]) | ||
|
||
const changeNetwork = useCallback( | ||
index => { | ||
const networkType = selectorNetworksSorted[index].type | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
const networkConfig = getNetworkConfig(networkType) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
|
||
setEthNetworkType(networkType) | ||
setDefaultEthNode(networkConfig.nodes.defaultEth) | ||
window.location = selectorNetworksSorted[index].url | ||
}, | ||
[selectorNetworksSorted] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import PropTypes from 'prop-types' | ||
import Aragon from '@aragon/wrapper' | ||
import Aragon from '@1hive/wrapper' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import { | ||
APPS_STATUS_ERROR, | ||
APPS_STATUS_READY, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.