Skip to content

Commit

Permalink
fix/nuke-tezos-cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
arein committed Jan 31, 2024
1 parent 59b98bc commit 6ac2f24
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 869 deletions.
1 change: 0 additions & 1 deletion advanced/wallets/react-wallet-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"cosmos-wallet": "1.2.0",
"ethers": "5.7.2",
"framer-motion": "6.5.1",
"mnemonic-keyring": "1.4.0",
"near-api-js": "^0.45.0",
"next": "12.1.5",
"permissionless": "0.0.20",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import SettingsStore from '@/store/SettingsStore'
import { cosmosAddresses } from '@/utils/CosmosWalletUtil'
import { eip155Addresses } from '@/utils/EIP155WalletUtil'
import { nearAddresses } from '@/utils/NearWalletUtil'
import { solanaAddresses } from '@/utils/SolanaWalletUtil'
import { multiversxAddresses } from '@/utils/MultiversxWalletUtil'
import { tronAddresses } from '@/utils/TronWalletUtil'
import { tezosAddresses } from '@/utils/TezosWalletUtil'
import { kadenaAddresses } from '@/utils/KadenaWalletUtil'
import { useSnapshot } from 'valtio'

Expand All @@ -17,12 +15,10 @@ export default function AccountPicker() {
console.log('account', account)
SettingsStore.setAccount(account)
SettingsStore.setEIP155Address(eip155Addresses[account])
SettingsStore.setCosmosAddress(cosmosAddresses[account])
SettingsStore.setSolanaAddress(solanaAddresses[account])
SettingsStore.setNearAddress(nearAddresses[account])
SettingsStore.setMultiversxAddress(multiversxAddresses[account])
SettingsStore.setTronAddress(tronAddresses[account])
SettingsStore.setTezosAddress(tezosAddresses[account])
SettingsStore.setKadenaAddress(kadenaAddresses[account])
}

Expand Down
6 changes: 0 additions & 6 deletions advanced/wallets/react-wallet-v2/src/components/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import ModalStore from '@/store/ModalStore'
import SessionProposalModal from '@/views/SessionProposalModal'
import SessionSendTransactionModal from '@/views/SessionSendTransactionModal'
import SessionSignCosmosModal from '@/views/SessionSignCosmosModal'
import SessionRequestModal from '@/views/SessionSignModal'
import SessionSignNearModal from '@/views/SessionSignNearModal'
import SessionSignPolkadotModal from '@/views/SessionSignPolkadotModal'
import SessionSignSolanaModal from '@/views/SessionSignSolanaModal'
import SessionSignMultiversxModal from '@/views/SessionSignMultiversxModal'
import SessionSignTronModal from '@/views/SessionSignTronModal'
import SessionSignTezosModal from '@/views/SessionSignTezosModal'
import SessionSignKadenaModal from '@/views/SessionSignKadenaModal'
import SessionSignTypedDataModal from '@/views/SessionSignTypedDataModal'
import SessionUnsuportedMethodModal from '@/views/SessionUnsuportedMethodModal'
Expand Down Expand Up @@ -39,8 +37,6 @@ export default function Modal() {
return <SessionSendTransactionModal />
case 'SessionUnsuportedMethodModal':
return <SessionUnsuportedMethodModal />
case 'SessionSignCosmosModal':
return <SessionSignCosmosModal />
case 'SessionSignSolanaModal':
return <SessionSignSolanaModal />
case 'SessionSignPolkadotModal':
Expand All @@ -51,8 +47,6 @@ export default function Modal() {
return <SessionSignMultiversxModal />
case 'SessionSignTronModal':
return <SessionSignTronModal />
case 'SessionSignTezosModal':
return <SessionSignTezosModal />
case 'SessionSignKadenaModal':
return <SessionSignKadenaModal />
case 'AuthRequestModal':
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import SettingsStore from '@/store/SettingsStore'
import { createOrRestoreCosmosWallet } from '@/utils/CosmosWalletUtil'
import { createOrRestoreEIP155Wallet } from '@/utils/EIP155WalletUtil'
import { createOrRestoreSolanaWallet } from '@/utils/SolanaWalletUtil'
import { createOrRestorePolkadotWallet } from '@/utils/PolkadotWalletUtil'
import { createOrRestoreNearWallet } from '@/utils/NearWalletUtil'
import { createOrRestoreMultiversxWallet } from '@/utils/MultiversxWalletUtil'
import { createOrRestoreTronWallet } from '@/utils/TronWalletUtil'
import { createOrRestoreTezosWallet } from '@/utils/TezosWalletUtil'
import { createWeb3Wallet, web3wallet } from '@/utils/WalletConnectUtil'
import { createOrRestoreKadenaWallet } from '@/utils/KadenaWalletUtil'
import { useCallback, useEffect, useRef, useState } from 'react'
Expand All @@ -21,23 +19,19 @@ export default function useInitialization() {
const onInitialize = useCallback(async () => {
try {
const { eip155Addresses } = createOrRestoreEIP155Wallet()
const { cosmosAddresses } = await createOrRestoreCosmosWallet()
const { solanaAddresses } = await createOrRestoreSolanaWallet()
const { polkadotAddresses } = await createOrRestorePolkadotWallet()
const { nearAddresses } = await createOrRestoreNearWallet()
const { multiversxAddresses } = await createOrRestoreMultiversxWallet()
const { tronAddresses } = await createOrRestoreTronWallet()
const { tezosAddresses } = await createOrRestoreTezosWallet()
const { kadenaAddresses } = await createOrRestoreKadenaWallet()

SettingsStore.setEIP155Address(eip155Addresses[0])
SettingsStore.setCosmosAddress(cosmosAddresses[0])
SettingsStore.setSolanaAddress(solanaAddresses[0])
SettingsStore.setPolkadotAddress(polkadotAddresses[0])
SettingsStore.setNearAddress(nearAddresses[0])
SettingsStore.setMultiversxAddress(multiversxAddresses[0])
SettingsStore.setTronAddress(tronAddresses[0])
SettingsStore.setTezosAddress(tezosAddresses[0])
SettingsStore.setKadenaAddress(kadenaAddresses[0])
await createWeb3Wallet(relayerRegionURL)
setInitialized(true)
Expand Down
63 changes: 0 additions & 63 deletions advanced/wallets/react-wallet-v2/src/lib/CosmosLib.ts

This file was deleted.

109 changes: 0 additions & 109 deletions advanced/wallets/react-wallet-v2/src/lib/TezosLib.ts

This file was deleted.

40 changes: 0 additions & 40 deletions advanced/wallets/react-wallet-v2/src/utils/CosmosRequestHandler.ts

This file was deleted.

43 changes: 0 additions & 43 deletions advanced/wallets/react-wallet-v2/src/utils/CosmosWalletUtil.ts

This file was deleted.

Loading

0 comments on commit 6ac2f24

Please sign in to comment.