Skip to content

Commit

Permalink
Merge pull request #2498 from CityOfZion/CU-864efmq36
Browse files Browse the repository at this point in the history
CU-864efmq36 - Change NWD to use wallet-connect-sdk-wallet-react
  • Loading branch information
melanke authored Jun 27, 2023
2 parents 002fe1a + 8503de4 commit 2800340
Show file tree
Hide file tree
Showing 85 changed files with 2,479 additions and 2,947 deletions.
1 change: 1 addition & 0 deletions __tests__/actions/authActions.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { wifLoginActions } from '../../app/actions/authActions'

jest.setTimeout(10000)
describe('authActions', () => {
describe('wifLoginActions', () => {
describe('call', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/actions/blockHeightActions.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rpc } from '@cityofzion/neon-js'
import { rpc } from '@cityofzion/neon-js-legacy'

import main, {
blockHeightActions,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/actions/claimsActions.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import { api, u } from '@cityofzion/neon-js'
import { api, u } from '@cityofzion/neon-js-legacy'

import claimsActions from '../../app/actions/claimsActions'
import { mockPromiseResolved } from '../testHelpers'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/actions/nodeStorageActions.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { api } from '@cityofzion/neon-js'
import { api } from '@cityofzion/neon-js-legacy'
import nock from 'nock'
import { ipcRenderer } from 'electron'

Expand Down
2 changes: 2 additions & 0 deletions __tests__/components/Logout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react'
import { shallow } from 'enzyme'

import Logout from '../../app/containers/App/Sidebar/Logout/Logout'
import { WalletConnectWalletProvider } from '@cityofzion/wallet-connect-sdk-wallet-react'
import { walletConnectOptions } from '../../app/util/walletConnect'

describe('Logout', () => {
const logout = jest.fn()
Expand Down
2 changes: 1 addition & 1 deletion __tests__/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'raf/polyfill'
import { configure } from 'enzyme'
import Adapter from '@cfaester/enzyme-adapter-react-18'
import nock from 'nock'
import { api } from '@cityofzion/neon-js'
import { api } from '@cityofzion/neon-js-legacy'
import { TextEncoder, TextDecoder } from 'util'

global.TextEncoder = TextEncoder
Expand Down
4 changes: 2 additions & 2 deletions app/actions/authActions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import { wallet } from '@cityofzion/neon-js'
import { wallet as n3Wallet } from '@cityofzion/neon-js-next'
import { wallet } from '@cityofzion/neon-js-legacy'
import { wallet as n3Wallet } from '@cityofzion/neon-js'
import { noop } from 'lodash-es'
import { createActions } from 'spunky'
import dns from 'dns'
Expand Down
4 changes: 2 additions & 2 deletions app/actions/balancesActions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import { api, u, rpc, sc, wallet } from '@cityofzion/neon-js'
import { rpc as n3Rpc } from '@cityofzion/neon-js-next'
import { api, u, rpc, sc, wallet } from '@cityofzion/neon-js-legacy'
import { rpc as n3Rpc } from '@cityofzion/neon-js'
import { extend, isEmpty, get } from 'lodash-es'
import { createActions } from 'spunky'
import { Howl } from 'howler'
Expand Down
2 changes: 1 addition & 1 deletion app/actions/blockHeightActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import { rpc } from '@cityofzion/neon-js'
import { rpc } from '@cityofzion/neon-js-legacy'
import { createActions } from 'spunky'
import { isEmpty } from 'lodash-es'
import { getNode, getRPCEndpoint } from './nodeStorageActions'
Expand Down
2 changes: 1 addition & 1 deletion app/actions/claimsActions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import { api } from '@cityofzion/neon-js-legacy-latest'
import { rpc as n3Rpc, u as n3U } from '@cityofzion/neon-js-next'
import { rpc as n3Rpc, u as n3U } from '@cityofzion/neon-js'
import { createActions } from 'spunky'

import { getNode, getRPCEndpoint } from './nodeStorageActions'
Expand Down
2 changes: 1 addition & 1 deletion app/actions/icoTokensActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import { api } from '@cityofzion/neon-js'
import { api } from '@cityofzion/neon-js-legacy'
import { createActions } from 'spunky'

import { getNode, getRPCEndpoint } from './nodeStorageActions'
Expand Down
4 changes: 2 additions & 2 deletions app/actions/nftActions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
import { createActions } from 'spunky'
import axios from 'axios'
import { rpc } from '@cityofzion/neon-js'
import { rpc as n3Rpc } from '@cityofzion/neon-js-next'
import { rpc } from '@cityofzion/neon-js-legacy'
import { rpc as n3Rpc } from '@cityofzion/neon-js'

import { getSettings } from './settingsActions'
import { getNode, getRPCEndpoint } from './nodeStorageActions'
Expand Down
2 changes: 1 addition & 1 deletion app/actions/nodeNetworkActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import { rpc, settings } from '@cityofzion/neon-js'
import { rpc, settings } from '@cityofzion/neon-js-legacy'
import { createActions } from 'spunky'

import {
Expand Down
2 changes: 1 addition & 1 deletion app/actions/nodeStorageActions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import { createActions } from 'spunky'
import { random, get, compact } from 'lodash-es'
import { rpc, api, settings } from '@cityofzion/neon-js'
import { rpc, api, settings } from '@cityofzion/neon-js-legacy'

import { getStorage, setStorage } from '../core/storage'
import {
Expand Down
2 changes: 1 addition & 1 deletion app/actions/pendingTransactionActions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import { createActions } from 'spunky'
import Neon, { rpc } from '@cityofzion/neon-js'
import Neon, { rpc } from '@cityofzion/neon-js-legacy'
import { isEmpty } from 'lodash-es'

import { toBigNumber } from '../core/math'
Expand Down
2 changes: 1 addition & 1 deletion app/actions/transactionHistoryActions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import { NeoLegacyREST, NeoRest } from '@cityofzion/dora-ts/dist/api'
import { createActions } from 'spunky'
import { rpc as n3Rpc, sc, u } from '@cityofzion/neon-js-next'
import { rpc as n3Rpc, sc, u } from '@cityofzion/neon-js'
import axios from 'axios'

import { TX_TYPES } from '../core/constants'
Expand Down
2 changes: 1 addition & 1 deletion app/actions/voteActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import { api, rpc } from '@cityofzion/neon-js'
import { api, rpc } from '@cityofzion/neon-js-legacy'
import { createActions } from 'spunky'

import { getNetworkById } from '../core/deprecated'
Expand Down
202 changes: 0 additions & 202 deletions app/components/ConnectDapp/ApproveConnection.js

This file was deleted.

Loading

0 comments on commit 2800340

Please sign in to comment.