Skip to content

Commit

Permalink
feat: @ckb-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Nov 10, 2023
1 parent 27e91b6 commit c00bb75
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"last 2 chrome versions"
],
"dependencies": {
"@ckb-connect/walletconnect-wallet-sdk": "^0.0.1-alpha.1",
"@nervosnetwork/ckb-sdk-core": "0.109.0",
"@nervosnetwork/ckb-sdk-utils": "0.109.0",
"canvg": "2.0.0",
"ckb-walletconnect-wallet-sdk": "0.0.2-alpha.0",
"i18next": "21.10.0",
"immer": "9.0.21",
"jsqr": "1.4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
sendCreateSUDTAccountTransaction,
sendSUDTTransaction,
} from 'states'
import { SessionRequest } from 'ckb-walletconnect-wallet-sdk'
import { SessionRequest } from '@ckb-connect/walletconnect-wallet-sdk'
import { OfflineSignType, OfflineSignStatus, signAndExportTransaction, signTransactionOnly } from 'services/remote'
import { PasswordIncorrectException } from 'exceptions'
import styles from './wcSignTransactionDialog.module.scss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { clsx, CONSTANTS, shannonToCKBFormatter } from 'utils'
import { SCRIPT_BASES } from 'utils/const'
import { scriptToAddress } from '@nervosnetwork/ckb-sdk-utils'
import { useState as useGlobalState } from 'states'
import { Proposal, Session, SessionRequest, SignTransactionParams } from 'ckb-walletconnect-wallet-sdk'
import { Proposal, Session, SessionRequest, SignTransactionParams } from '@ckb-connect/walletconnect-wallet-sdk'
import { DetailIcon } from 'widgets/Icons/icon'
import styles from './walletConnect.module.scss'

Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/WalletConnect/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useMemo } from 'react'
import { useState as useGlobalState } from 'states'
import { connect, disconnect, approveSession, rejectSession, approveRequest, rejectRequest } from 'services/remote'
import { ControllerResponse } from 'services/remote/remoteApiWrapper'
import { SessionRequest } from 'ckb-walletconnect-wallet-sdk'
import { SessionRequest } from '@ckb-connect/walletconnect-wallet-sdk'

export const useWalletConnect = () => {
const {
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/WalletConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { showErrorMessage, signMessage } from 'services/remote'
import { ControllerResponse } from 'services/remote/remoteApiWrapper'
import { clsx, ErrorCode, isSuccessResponse } from 'utils'
import { Experiment, WalletConnect as WalletConnectIcon, Scan, ScanScreen, NumberScan } from 'widgets/Icons/icon'
import { SessionRequest } from 'ckb-walletconnect-wallet-sdk'
import { SessionRequest } from '@ckb-connect/walletconnect-wallet-sdk'
import { useWalletConnect } from './hooks'
import { SessionItem, PrososalItem, MessageItem, TransactionItem } from './ItemComponents'
import styles from './walletConnect.module.scss'
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/services/remote/offline.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable camelcase */
import { Transaction } from 'ckb-walletconnect-wallet-sdk'
import { Transaction } from '@ckb-connect/walletconnect-wallet-sdk'
import { remoteApi } from './remoteApiWrapper'
import { MultisigEntity } from './multisig'

Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/services/remote/walletConnect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ErrorResponse, SessionRequest } from 'ckb-walletconnect-wallet-sdk'
import { ErrorResponse, SessionRequest } from '@ckb-connect/walletconnect-wallet-sdk'
import { remoteApi } from './remoteApiWrapper'

export const connect = remoteApi<string>('wc-connect')
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/types/App/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="ckb-walletconnect-wallet-sdk" />
/// <reference types="@ckb-connect/walletconnect-wallet-sdk" />

declare namespace State {
interface Transaction {
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
]
},
"dependencies": {
"@ckb-connect/walletconnect-wallet-sdk": "^0.0.1-alpha.1",
"@ckb-lumos/base": "^0.21.0-next.1",
"@ckb-lumos/bi": "^0.21.0-next.1",
"@ckb-lumos/ckb-indexer": "^0.21.0-next.1",
Expand All @@ -57,7 +58,6 @@
"async": "3.2.4",
"bn.js": "4.12.0",
"chalk": "3.0.0",
"ckb-walletconnect-wallet-sdk": "0.0.2-alpha.0",
"dotenv": "8.6.0",
"electron-log": "4.4.8",
"electron-updater": "4.6.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/controllers/wallet-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Session,
SessionRequest,
SignedTransaction,
} from 'ckb-walletconnect-wallet-sdk'
} from '@ckb-connect/walletconnect-wallet-sdk'
import WalletConnectSubject from '../models/subjects/wallet-connect-subject'
import { CurrentWalletSubject } from '../models/subjects/wallets'
import { CurrentNetworkIDSubject } from '../models/subjects/networks'
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/types/controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="ckb-walletconnect-wallet-sdk" />
/// <reference types="@ckb-connect/walletconnect-wallet-sdk" />

declare namespace Controller {
interface Response<T = any> {
Expand Down

1 comment on commit c00bb75

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 6859184778

Please sign in to comment.