diff --git a/wallets/react-wallet-v2/public/chain-logos/cosmos-cosmoshub-4.png b/wallets/react-wallet-v2/public/chain-logos/cosmos-cosmoshub-4.png new file mode 100644 index 0000000..03cc60a Binary files /dev/null and b/wallets/react-wallet-v2/public/chain-logos/cosmos-cosmoshub-4.png differ diff --git a/wallets/react-wallet-v2/src/data/COSMOSData.ts b/wallets/react-wallet-v2/src/data/COSMOSData.ts new file mode 100644 index 0000000..dcb129b --- /dev/null +++ b/wallets/react-wallet-v2/src/data/COSMOSData.ts @@ -0,0 +1,12 @@ +/** + * Chains + */ +export const EIP155_MAINNET_CHAINS = { + 'cosmos:cosmoshub-4': { + chainId: 'cosmoshub-4', + name: 'Cosmos Hub', + logo: '/chain-logos/cosmos-cosmoshub4.png', + rgb: '27, 31, 53', + rpc: 'https://cloudflare-eth.com/' + } +} diff --git a/wallets/react-wallet-v2/src/pages/session.tsx b/wallets/react-wallet-v2/src/pages/session.tsx index 2e7cc19..82b9c5b 100644 --- a/wallets/react-wallet-v2/src/pages/session.tsx +++ b/wallets/react-wallet-v2/src/pages/session.tsx @@ -35,7 +35,7 @@ export default function SessionPage() { return null } - const { name, url, icons, description } = session.peer.metadata + const { name, url, icons } = session.peer.metadata return ( @@ -52,8 +52,6 @@ export default function SessionPage() { - - {description} ) } diff --git a/wallets/react-wallet-v2/src/utils/RequestHandlerUtil.ts b/wallets/react-wallet-v2/src/utils/EIP155RequestHandlerUtil.ts similarity index 100% rename from wallets/react-wallet-v2/src/utils/RequestHandlerUtil.ts rename to wallets/react-wallet-v2/src/utils/EIP155RequestHandlerUtil.ts diff --git a/wallets/react-wallet-v2/src/views/SessionSendTransactionModal.tsx b/wallets/react-wallet-v2/src/views/SessionSendTransactionModal.tsx index e975b5c..0f8508e 100644 --- a/wallets/react-wallet-v2/src/views/SessionSendTransactionModal.tsx +++ b/wallets/react-wallet-v2/src/views/SessionSendTransactionModal.tsx @@ -1,7 +1,7 @@ import { EIP155_CHAINS, TEIP155Chain } from '@/data/EIP155Data' import ModalStore from '@/store/ModalStore' +import { approveEIP155Request, rejectEIP155Request } from '@/utils/EIP155RequestHandlerUtil' import { truncate } from '@/utils/HelperUtil' -import { approveEIP155Request, rejectEIP155Request } from '@/utils/RequestHandlerUtil' import { walletConnectClient } from '@/utils/WalletConnectUtil' import { Avatar, diff --git a/wallets/react-wallet-v2/src/views/SessionSignModal.tsx b/wallets/react-wallet-v2/src/views/SessionSignModal.tsx index c43eef8..991111a 100644 --- a/wallets/react-wallet-v2/src/views/SessionSignModal.tsx +++ b/wallets/react-wallet-v2/src/views/SessionSignModal.tsx @@ -1,7 +1,7 @@ import { EIP155_CHAINS, TEIP155Chain } from '@/data/EIP155Data' import ModalStore from '@/store/ModalStore' +import { approveEIP155Request, rejectEIP155Request } from '@/utils/EIP155RequestHandlerUtil' import { getSignParamsMessage } from '@/utils/HelperUtil' -import { approveEIP155Request, rejectEIP155Request } from '@/utils/RequestHandlerUtil' import { walletConnectClient } from '@/utils/WalletConnectUtil' import { Avatar, Button, Col, Container, Divider, Link, Modal, Row, Text } from '@nextui-org/react' import { Fragment } from 'react' diff --git a/wallets/react-wallet-v2/src/views/SessionSignTypedDataModal.tsx b/wallets/react-wallet-v2/src/views/SessionSignTypedDataModal.tsx index 53d2c30..3b3211a 100644 --- a/wallets/react-wallet-v2/src/views/SessionSignTypedDataModal.tsx +++ b/wallets/react-wallet-v2/src/views/SessionSignTypedDataModal.tsx @@ -1,7 +1,7 @@ import { EIP155_CHAINS, TEIP155Chain } from '@/data/EIP155Data' import ModalStore from '@/store/ModalStore' +import { approveEIP155Request, rejectEIP155Request } from '@/utils/EIP155RequestHandlerUtil' import { getSignTypedDataParamsData } from '@/utils/HelperUtil' -import { approveEIP155Request, rejectEIP155Request } from '@/utils/RequestHandlerUtil' import { walletConnectClient } from '@/utils/WalletConnectUtil' import { Avatar, Button, Col, Container, Divider, Link, Modal, Row, Text } from '@nextui-org/react' import { Fragment } from 'react'