Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@vercel/kv": "^3.0.0",
"caniuse-lite": "^1.0.30001687",
"clsx": "^2.1.0",
"ethereum-identity-kit": "^0.2.66",
"@encrypteddegen/identity-kit": "^0.2.69",
"i18next": "^23.11.5",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-http-backend": "^2.5.2",
Expand Down
2 changes: 1 addition & 1 deletion src/app/[user]/hooks/use-user-profile.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react'
import { isAddress } from 'viem'
import { useInfiniteQuery, useQuery } from '@tanstack/react-query'
import { fetchProfileDetails, fetchProfileStats } from 'ethereum-identity-kit'
import { fetchProfileDetails, fetchProfileStats } from '@encrypteddegen/identity-kit'

import { FETCH_LIMIT_PARAM, MINUTE } from '#/lib/constants'
import type { ProfileTableTitleType } from '#/types/common'
Expand Down
2 changes: 1 addition & 1 deletion src/app/[user]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Metadata } from 'next'
import type { SearchParams } from 'next/dist/server/request/search-params'
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query'
import { fetchProfileDetails, fetchProfileStats, isLinkValid } from 'ethereum-identity-kit/utils'
import { fetchProfileDetails, fetchProfileStats, isLinkValid } from '@encrypteddegen/identity-kit/utils'

import { MINUTE } from '#/lib/constants'
import UserInfo from './components/user-info'
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/top-eight/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isAddress } from 'viem'
import { truncateAddress } from '#/lib/utilities'
import { ens_beautify } from '@adraffy/ens-normalize'
import type { TopEightProfileType } from '#/components/top-eight/hooks/use-top-eight'
import { isLinkValid } from 'ethereum-identity-kit/utils'
import { isLinkValid } from '@encrypteddegen/identity-kit/utils'
import { fetchAccount } from '#/api/fetch-account'

function generateHTML(userName: string, userAvatar: string | undefined, profiles: TopEightProfileType[]) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ input {

/* .dark .tooltip-card,
.dark-tooltip-card {
color: var(--ethereum-identity-kit-text-primary-dark);
background-color: var(--ethereum-identity-kit-background-dark);
color: var(--@encrypteddegen/identity-kit-text-primary-dark);
background-color: var(--@encrypteddegen/identity-kit-background-dark);
} */

.user-profile-status-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Link from 'next/link'
import { useAccount } from 'wagmi'
import { useRouter } from 'next/navigation'
import { useTranslation } from 'react-i18next'
import { ProfileCard } from 'ethereum-identity-kit'
import { ProfileCard } from '@encrypteddegen/identity-kit'

import FollowButton from '#/components/follow-button'
import ExternalLink from 'public/assets/icons/ui/external-link.svg'
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './i18n'
import './globals.css'
import 'ethereum-identity-kit/css'
import '@encrypteddegen/identity-kit/css'
import '@rainbow-me/rainbowkit/styles.css'

import Image from 'next/image'
Expand Down
2 changes: 1 addition & 1 deletion src/app/leaderboard/components/row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useAccount } from 'wagmi'
import type { Address } from 'viem'
import { DEFAULT_FALLBACK_HEADER, isLinkValid } from 'ethereum-identity-kit'
import { DEFAULT_FALLBACK_HEADER, isLinkValid } from '@encrypteddegen/identity-kit'

import Name from './name'
import StatsDesktop from './stats-desktop'
Expand Down
2 changes: 1 addition & 1 deletion src/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ThirdwebProvider } from 'thirdweb/react'
import { WagmiProvider, type State } from 'wagmi'
import { darkTheme, RainbowKitProvider } from '@rainbow-me/rainbowkit'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { TransactionProvider, TranslationProvider } from 'ethereum-identity-kit'
import { TransactionProvider, TranslationProvider } from '@encrypteddegen/identity-kit'

import wagmiConfig from '#/lib/wagmi'
import { DAY, MINUTE } from '#/lib/constants'
Expand Down
2 changes: 1 addition & 1 deletion src/app/team/hooks/use-members.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQuery } from '@tanstack/react-query'
import { fetchProfileDetails, fetchProfileStats } from 'ethereum-identity-kit'
import { fetchProfileDetails, fetchProfileStats } from '@encrypteddegen/identity-kit'
import { TEAM_ADDRESSES, FOUNDATION_ADDRESSES } from '#/lib/constants/team'

export const useMembers = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { GetEnsAvatarReturnType } from 'viem'
import { isLinkValid } from 'ethereum-identity-kit'
import { isLinkValid } from '@encrypteddegen/identity-kit'

import { cn } from '#/lib/utilities'
import ImageWithFallback from './image-with-fallback'
Expand Down
2 changes: 1 addition & 1 deletion src/components/blocked-muted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useClickAway } from '@uidotdev/usehooks'
import { useIsEditView } from '#/hooks/use-is-edit-view'
import { useEFPProfile } from '#/contexts/efp-profile-context'
import Cross from 'public/assets/icons/ui/cross.svg'
import { FollowersAndFollowing } from 'ethereum-identity-kit'
import { FollowersAndFollowing } from '@encrypteddegen/identity-kit'

interface BlockedMutedProps {
user: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/follow-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
FollowButton as IdentityFollowButton,
useTransactions,
type InitialFollowingState,
} from 'ethereum-identity-kit'
} from '@encrypteddegen/identity-kit'

import { useSounds } from '#/contexts/sounds-context'
import { FOLLOW_BUTTON_SOUND } from '#/lib/constants/follow-button'
Expand Down
2 changes: 1 addition & 1 deletion src/components/follows-you.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cn } from '#/lib/utilities'
import { useFollowerState } from 'ethereum-identity-kit'
import { useFollowerState } from '@encrypteddegen/identity-kit'
import React from 'react'
import { useTranslation } from 'react-i18next'
import type { Address } from 'viem'
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/components/profile-summary-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from 'next/link'
import Image from 'next/image'
import { useTranslation } from 'react-i18next'
import { ens_beautify } from '@adraffy/ens-normalize'
import { truncateAddress, isLinkValid } from 'ethereum-identity-kit'
import { truncateAddress, isLinkValid } from '@encrypteddegen/identity-kit'

import { Avatar } from '#/components/avatar'
import { formatNumber } from '#/utils/format/format-number'
Expand Down
2 changes: 1 addition & 1 deletion src/components/language-selector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Check from 'public/assets/icons/ui/check.svg'
import ArrowLeft from 'public/assets/icons/ui/arrow-left.svg'
import ArrowRight from 'public/assets/icons/ui/arrow-right.svg'
import Image from 'next/image'
import { useTranslation as useIdentityKitTranslation } from 'ethereum-identity-kit'
import { useTranslation as useIdentityKitTranslation } from '@encrypteddegen/identity-kit'

interface LanguageSelectorProps {
setExternalLanguageMenuOpen?: Dispatch<SetStateAction<boolean>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { coreEfpContracts, ListRecordContracts } from '#/lib/constants/contracts
import { resetFollowingRelatedQueries } from '#/utils/reset-queries'
import { listOpAddTag, listOpAddListRecord, splitListOps } from '#/utils/list-ops'
import { efpAccountMetadataAbi, efpListRecordsAbi, efpListRegistryAbi } from '#/lib/abi'
import { EFPActionIds, formatListOpsTransaction, useTransactions, type ListOpType } from 'ethereum-identity-kit'
import { EFPActionIds, formatListOpsTransaction, useTransactions, type ListOpType } from '@encrypteddegen/identity-kit'

type SaveListSettingsParams = {
selectedList: number
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/components/cart-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useMemo } from 'react'
import { useAccount } from 'wagmi'
import { useTranslation } from 'react-i18next'
import { useConnectModal } from '@rainbow-me/rainbowkit'
import { EFPActionIds, useTransactions } from 'ethereum-identity-kit'
import { EFPActionIds, useTransactions } from '@encrypteddegen/identity-kit'

import { cn } from '#/lib/utilities'
import { useCart } from '#/hooks/use-cart'
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/components/nav-items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { cn, truncateAddress } from '#/lib/utilities'
import Hamburger from './hamburger'
import CartButton from './cart-button'
import { useQuery } from '@tanstack/react-query'
import { fetchAccount } from 'ethereum-identity-kit'
import { fetchAccount } from '@encrypteddegen/identity-kit'
import LoadingCell from '#/components/loaders/loading-cell'
import { useTranslation } from 'react-i18next'

Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from 'next/link'
import { useAccount } from 'wagmi'
import { useRouter } from 'next/navigation'
import { useWindowSize } from '@uidotdev/usehooks'
import { Notifications } from 'ethereum-identity-kit'
import { Notifications } from '@encrypteddegen/identity-kit'

import { Search } from '../search'
import Logo from 'public/assets/efp-logo.svg'
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from 'next/link'
import { useAccount } from 'wagmi'
import React, { useEffect, useRef } from 'react'
import { useWindowSize } from '@uidotdev/usehooks'
import { Notifications } from 'ethereum-identity-kit'
import { Notifications } from '@encrypteddegen/identity-kit'
import { usePathname, useRouter } from 'next/navigation'

import { Search } from '../search'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Image from 'next/image'
import { useAccount } from 'wagmi'
import type { Address } from 'viem'
import { useQuery } from '@tanstack/react-query'
import { type InitialFollowingState, isLinkValid } from 'ethereum-identity-kit'
import { type InitialFollowingState, isLinkValid } from '@encrypteddegen/identity-kit'

import ProfileListItemDetails from './details'
import { fetchAccount } from '#/api/fetch-account'
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ENSProfile } from '#/types/requests'
import type { ProfileStatsType } from '#/types/common'
import LoadingRow from './components/list-item/loading-list-item'
import ProfileListItem from './components/list-item/profile-list-item'
import type { InitialFollowingState } from 'ethereum-identity-kit'
import type { InitialFollowingState } from '@encrypteddegen/identity-kit'

export interface ProfileListProfile {
address: Address
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile-tooltip-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React from 'react'
import { useRouter } from 'next/navigation'
import { ProfileTooltip, type Address, type ProfileListType } from 'ethereum-identity-kit'
import { ProfileTooltip, type Address, type ProfileListType } from '@encrypteddegen/identity-kit'

interface ProfileTooltipWrapperProps {
addressOrName: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/push-notifications/setup-modal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react'
import { useIsClient } from 'ethereum-identity-kit'
import { useIsClient } from '@encrypteddegen/identity-kit'
import SetupBrowser from './setup-browser'
import EnableNotifications from './enable-notifications'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useAccount } from 'wagmi'
import { useEffect, useState } from 'react'
import { useQuery } from '@tanstack/react-query'
import { fetchAccount } from 'ethereum-identity-kit'
import { fetchAccount } from '@encrypteddegen/identity-kit'
import type { PushSubscription as SerializablePushSubscription } from 'web-push'
import {
getSubscriptionForCurrentUser,
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/result-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ens_beautify } from '@adraffy/ens-normalize'

import { truncateAddress } from '#/lib/utilities'
import type { SearchENSNameDomain } from '#/types/requests'
import { isAddress } from 'ethereum-identity-kit'
import { isAddress } from '@encrypteddegen/identity-kit'

export interface ResultItemProps {
result: SearchENSNameDomain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Image from 'next/image'
import { useAccount } from 'wagmi'
import { useQuery } from '@tanstack/react-query'
import { useWindowSize } from '@uidotdev/usehooks'
import { isLinkValid } from 'ethereum-identity-kit'
import { isLinkValid } from '@encrypteddegen/identity-kit'
import { ens_beautify } from '@adraffy/ens-normalize'

import { useCart } from '#/hooks/use-cart'
Expand Down
2 changes: 1 addition & 1 deletion src/components/top-eight/hooks/use-edit-top-eight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useAccount } from 'wagmi'
import { isAddress, type Address } from 'viem'
import { useTranslation } from 'react-i18next'
import { useEffect, useMemo, useState } from 'react'
import { fetchFollowState, useTransactions } from 'ethereum-identity-kit'
import { fetchFollowState, useTransactions } from '@encrypteddegen/identity-kit'

import { useCart } from '#/hooks/use-cart'
import { resolveEnsAddress } from '#/utils/ens'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useAccount } from 'wagmi'
import type { Address } from 'viem'
import { useFollowButton } from 'ethereum-identity-kit'
import { useFollowButton } from '@encrypteddegen/identity-kit'

import { useCart } from '#/hooks/use-cart'
import { listOpAddListRecord, listOpAddTag, listOpRemoveListRecord, listOpRemoveTag } from '#/utils/list-ops'
Expand Down
2 changes: 1 addition & 1 deletion src/components/transaction-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { useRouter } from 'next/navigation'
import { useTransactions, TransactionModal as TransactionModalComponent } from 'ethereum-identity-kit'
import { useTransactions, TransactionModal as TransactionModalComponent } from '@encrypteddegen/identity-kit'

const TransactionModal = () => {
const router = useRouter()
Expand Down
2 changes: 1 addition & 1 deletion src/components/user-profile-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Link from 'next/link'
import { useRouter } from 'next/navigation'
import { useTranslation } from 'react-i18next'
import { ProfileCard } from 'ethereum-identity-kit'
import { ProfileCard } from '@encrypteddegen/identity-kit'

import { cn } from '#/lib/utilities'
import Achievements from './components/achievements'
Expand Down
2 changes: 1 addition & 1 deletion src/components/user-profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { useAccount } from 'wagmi'
import { useRouter } from 'next/navigation'
import { useWindowSize } from '@uidotdev/usehooks'
import { FullWidthProfile } from 'ethereum-identity-kit'
import { FullWidthProfile } from '@encrypteddegen/identity-kit'

import FollowButton from '../follow-button'
import type { StatsResponse } from '#/types/requests'
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/efp-profile-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import type { Address } from 'viem'
import { useRouter } from 'next/navigation'
import { useAccount, useChains } from 'wagmi'
import { fetchProfileDetails, fetchProfileStats, useTransactions } from 'ethereum-identity-kit'
import { fetchProfileDetails, fetchProfileStats, useTransactions } from '@encrypteddegen/identity-kit'

import type {
ENSProfile,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useAccount } from 'wagmi'
import type { Address } from 'viem'
import { useCallback } from 'react'
import { EFPActionIds, getListOpsFromTransaction, useTransactions, type ListOpType } from 'ethereum-identity-kit'
import { EFPActionIds, getListOpsFromTransaction, useTransactions, type ListOpType } from '@encrypteddegen/identity-kit'

import type { ListOp } from '#/types/list-op'
import type { ImportPlatformType } from '#/types/common'
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-follower-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMemo } from 'react'
import { useAccount } from 'wagmi'
import type { Address } from 'viem'
import { useQuery } from '@tanstack/react-query'
import { fetchFollowState } from 'ethereum-identity-kit'
import { fetchFollowState } from '@encrypteddegen/identity-kit'

import type { FollowState } from '#/types/common'
import { useEFPProfile } from '#/contexts/efp-profile-context'
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-following-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMemo } from 'react'
import { useAccount } from 'wagmi'
import type { Address } from 'viem'
import { useQuery } from '@tanstack/react-query'
import { fetchFollowState } from 'ethereum-identity-kit'
import { fetchFollowState } from '@encrypteddegen/identity-kit'

import type { FollowState } from '#/types/common'
import { useEFPProfile } from '#/contexts/efp-profile-context'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants/follow-button.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { THEMES } from '.'
import MainnetRed from 'public/assets/mainnet-red.svg'
import type { SVGProps } from 'react'
import type { FollowingState } from 'ethereum-identity-kit'
import type { FollowingState } from '@encrypteddegen/identity-kit'

export const FOLLOW_BUTTON_STYLES: Record<
FollowingState,
Expand Down
2 changes: 1 addition & 1 deletion src/types/list-op.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ListOpType } from 'ethereum-identity-kit'
import type { ListOpType } from '@encrypteddegen/identity-kit'
import type { Address } from 'viem'

export type ListOp = ListOpType
Expand Down
2 changes: 1 addition & 1 deletion src/utils/list-ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fromHex, toHex, type Address } from 'viem'
import { DEFAULT_CHAIN } from '#/lib/constants/chains'
import { LIST_OP_LIMITS } from '#/lib/constants/chains'
import type { ListOp, TagListOp } from '#/types/list-op'
import type { ListOpType } from 'ethereum-identity-kit'
import type { ListOpType } from '@encrypteddegen/identity-kit'

export const listOpAddListRecord = (address: Address): ListOp => {
return {
Expand Down