Skip to content

Commit

Permalink
chore: add base as valid wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano committed Dec 14, 2023
1 parent 78ae064 commit 438ea5a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 21 deletions.
12 changes: 12 additions & 0 deletions packages/website/src/constants/deployChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ export const chains = [
shortName: 'ogor',
serviceUrl: '',
},
{
id: 8453,
name: 'Base',
shortName: 'base',
serviceUrl: '',
},
{
id: 84531,
name: 'Base Goerli Testnet',
shortName: 'gbase',
serviceUrl: '',
},
{
id: 42161,
name: 'Arbitrum',
Expand Down
30 changes: 15 additions & 15 deletions packages/website/src/features/Deploy/SafeAddressInput.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
import { Alert } from '@/components/Alert';
import { includes } from '@/helpers/array';
import { State, useStore } from '@/helpers/store';
import {
getSafeFromString,
getSafeUrl,
isValidSafe,
isValidSafeString,
parseSafe,
SafeString,
safeToString,
usePendingTransactions,
useWalletPublicSafes,
} from '@/hooks/safe';
import { CloseIcon, ExternalLinkIcon } from '@chakra-ui/icons';
import { FormControl, IconButton, Link, Spacer, Text } from '@chakra-ui/react';
import {
Expand All @@ -8,23 +22,9 @@ import {
OptionProps,
} from 'chakra-react-select';
import deepEqual from 'fast-deep-equal';
import { useEffect } from 'react';
import { usePathname, useRouter, useSearchParams } from 'next/navigation';
import { useEffect } from 'react';
import { useSwitchNetwork } from 'wagmi';
import {
getSafeFromString,
getSafeUrl,
isValidSafe,
isValidSafeString,
parseSafe,
SafeString,
safeToString,
usePendingTransactions,
useWalletPublicSafes,
} from '@/hooks/safe';
import { State, useStore } from '@/helpers/store';
import { includes } from '@/helpers/array';
import { Alert } from '@/components/Alert';

type SafeOption = {
value: SafeString;
Expand Down
12 changes: 6 additions & 6 deletions packages/website/src/hooks/safe.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { chains } from '@/constants/deployChains';
import * as onchainStore from '@/helpers/onchain-store';
import { findChainUrl } from '@/helpers/rpc';
import { ChainId, SafeDefinition, useStore } from '@/helpers/store';
import { supportedChains } from '@/providers/walletProvider';
import { SafeTransaction } from '@/types/SafeTransaction';
import SafeApiKit from '@safe-global/api-kit';
import { EthersAdapter } from '@safe-global/protocol-kit';
import { ethers } from 'ethers';
import { Address, createWalletClient, getAddress, http, isAddress, keccak256, stringToBytes } from 'viem';
import { mainnet, useAccount, useChainId, useContractReads, useQuery } from 'wagmi';
import { chains } from '@/constants/deployChains';
import { ChainId, SafeDefinition, useStore } from '@/helpers/store';
import { SafeTransaction } from '@/types/SafeTransaction';
import * as onchainStore from '@/helpers/onchain-store';
import { supportedChains } from '@/providers/walletProvider';
import { findChainUrl } from '@/helpers/rpc';

export type SafeString = `${ChainId}:${Address}`;

Expand Down

0 comments on commit 438ea5a

Please sign in to comment.