Skip to content

Commit

Permalink
feature: update wc constants (#2431)
Browse files Browse the repository at this point in the history
* Fix wallet connect

* Revert logging

* lint

* Add back missing packages

* Remove unused file

* Bump version
  • Loading branch information
comountainclimber authored Sep 26, 2022
1 parent e38a798 commit e62cf7c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 37 deletions.
27 changes: 8 additions & 19 deletions app/components/Root/Root.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import React from 'react'
import { Provider } from 'react-redux'
import { HashRouter } from 'react-router-dom'
import { WalletConnectContextProvider } from '../../context/WalletConnect/WalletConnectContext'
import {
DEFAULT_APP_METADATA,
DEFAULT_PROJECT_ID,
DEFAULT_RELAY_PROVIDER,
} from '../../core/constants'

import IntlWrapper from './IntlWrapper'
import Routes from './Routes'
Expand All @@ -12,25 +17,9 @@ type Props = {
}

const wcOptions = {
chainIds: ['neo3:testnet', 'neo3:mainnet'],
methods: [
'invokeFunction',
'testInvoke',
'multiInvoke',
'multiTestInvoke',
'signMessage',
'verifyMessage',
],
relayServer: 'wss://relay.walletconnect.org',
appMetadata: {
name: 'Neon Wallet',
description:
'An open source cross-platform light wallet for the NEO blockchain available on Windows, Mac OS, and Linux.',
url: 'https://coz.io/',
icons: [
'https://raw.githubusercontent.com/CityOfZion/visual-identity/develop/_CoZ%20Branding/_Logo/_Logo%20icon/_PNG%20200x178px/CoZ_Icon_DARKBLUE_200x178px.png',
],
},
appMetadata: DEFAULT_APP_METADATA,
relayServer: DEFAULT_RELAY_PROVIDER,
projectId: DEFAULT_PROJECT_ID,
}

const Root = ({ store }: Props) => (
Expand Down
14 changes: 0 additions & 14 deletions app/context/WalletConnect/constants.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Neon",
"version": "2.14.0",
"version": "2.14.1",
"main": "./main.js",
"description": "Light wallet for NEO blockchain",
"homepage": "https://github.com/CityOfZion/neon-wallet",
Expand Down
15 changes: 12 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@
resolved "https://registry.yarnpkg.com/@stablelib/wipe/-/wipe-1.0.1.tgz#d21401f1d59ade56a62e139462a97f104ed19a36"
integrity sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==

"@stablelib/[email protected]", "@stablelib/x25519@^1.0.2":
"@stablelib/[email protected]":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@stablelib/x25519/-/x25519-1.0.2.tgz#ae21e2ab668076ec2eb2b4853b82a27fab045fa1"
integrity sha512-wTR0t0Bp1HABLFRbYaE3vFLuco2QbAg6QvxBnzi5j9qjhYezWHW7OiCZyaWbt25UkSaoolUUT4Il0nS/2vcbSw==
Expand All @@ -1846,6 +1846,15 @@
"@stablelib/random" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/x25519@^1.0.2":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@stablelib/x25519/-/x25519-1.0.3.tgz#13c8174f774ea9f3e5e42213cbf9fc68a3c7b7fd"
integrity sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw==
dependencies:
"@stablelib/keyagreement" "^1.0.1"
"@stablelib/random" "^1.0.2"
"@stablelib/wipe" "^1.0.1"

"@szmarczak/http-timer@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
Expand Down Expand Up @@ -2255,7 +2264,7 @@
resolved "https://registry.yarnpkg.com/@walletconnect/time/-/time-1.0.1.tgz#645f596887e67c56522edbc2b170d46a97c87ce0"
integrity sha512-LtNtHupTNranehLMh8Z/JN6xVySysSoJNjNCQ0ML+hOUkim5QX/VdvfovSpaX9qA2b95u7bIuTcq0O3UBk7Iyw==

"@walletconnect/[email protected]", "@walletconnect/types@^2.0.0-beta.17":
"@walletconnect/[email protected]":
version "2.0.0-beta.17"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.0.0-beta.17.tgz#9432b01aec32cb1847faea13de0ecc00c4e3c82a"
integrity sha512-YQjS9HqQSR6yztTarzeT9+DW5BTnDWBAlWedGGxiEdhuwV56FQJTZKnMjpM1f8yS5j0vBH/mSst65h7jS/65zQ==
Expand All @@ -2265,7 +2274,7 @@
pino "^6.7.0"
pino-pretty "^4.3.0"

"@walletconnect/[email protected]":
"@walletconnect/[email protected]", "@walletconnect/types@^2.0.0-beta.17":
version "2.0.0-rc.3"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.0.0-rc.3.tgz#fdb8b9d8e2d55e87faaad2723a2a56b4762a2714"
integrity sha512-PkzgdBr4tSXQtyGT91P6cdQJ44dCwRRwIW4BDW6tRqsvziPcyt6aQzWYfKQiMl6i2fIMK/8fgr1oDYPcLQLvbA==
Expand Down

0 comments on commit e62cf7c

Please sign in to comment.