diff --git a/lib/contexts/rewards.tsx b/lib/contexts/rewards.tsx index c9a93f16bd..3247aa9d23 100644 --- a/lib/contexts/rewards.tsx +++ b/lib/contexts/rewards.tsx @@ -138,7 +138,7 @@ export function RewardsContextProvider({ children }: Props) { // Save the API token to cookies and state const saveApiToken = useCallback((token: string | undefined) => { if (token) { - cookies.set(cookies.NAMES.REWARDS_API_TOKEN, token); + cookies.set(cookies.NAMES.REWARDS_API_TOKEN, token, { expires: 365 }); } else { cookies.remove(cookies.NAMES.REWARDS_API_TOKEN); } diff --git a/lib/mixpanel/index.ts b/lib/mixpanel/index.ts index 72f7be7285..b1ac13bb87 100644 --- a/lib/mixpanel/index.ts +++ b/lib/mixpanel/index.ts @@ -1,6 +1,7 @@ import getPageType from './getPageType'; import getUuid from './getUuid'; import logEvent from './logEvent'; +import reset from './reset'; import useInit from './useInit'; import useLogPageView from './useLogPageView'; import * as userProfile from './userProfile'; @@ -13,4 +14,5 @@ export { getPageType, getUuid, userProfile, + reset, }; diff --git a/lib/mixpanel/reset.ts b/lib/mixpanel/reset.ts new file mode 100644 index 0000000000..489646d725 --- /dev/null +++ b/lib/mixpanel/reset.ts @@ -0,0 +1,10 @@ +import mixpanel from 'mixpanel-browser'; + +import config from 'configs/app'; + +export default function reset() { + if (!config.features.mixpanel.isEnabled) { + return; + } + mixpanel.reset(); +} diff --git a/lib/web3/wagmiConfig.ts b/lib/web3/wagmiConfig.ts index 423b4b9b7e..387a9bdd16 100644 --- a/lib/web3/wagmiConfig.ts +++ b/lib/web3/wagmiConfig.ts @@ -31,6 +31,7 @@ const wagmi = (() => { projectId: feature.walletConnect.projectId, ssr: true, batch: { multicall: { wait: 100 } }, + syncConnectedChain: false, }); return { config: wagmiAdapter.wagmiConfig, adapter: wagmiAdapter }; diff --git a/mocks/address/tabCounters.ts b/mocks/address/tabCounters.ts index 3853ffab4d..85c3cd1e9a 100644 --- a/mocks/address/tabCounters.ts +++ b/mocks/address/tabCounters.ts @@ -1,7 +1,7 @@ import type { AddressTabsCounters } from 'types/api/address'; export const base: AddressTabsCounters = { - internal_txs_count: 13, + internal_transactions_count: 13, logs_count: 51, token_balances_count: 3, token_transfers_count: 3, diff --git a/stubs/address.ts b/stubs/address.ts index acd1c1d03e..17140ff986 100644 --- a/stubs/address.ts +++ b/stubs/address.ts @@ -48,7 +48,7 @@ export const ADDRESS_COUNTERS: AddressCounters = { }; export const ADDRESS_TABS_COUNTERS: AddressTabsCounters = { - internal_txs_count: 10, + internal_transactions_count: 10, logs_count: 10, token_balances_count: 10, token_transfers_count: 10, diff --git a/types/api/address.ts b/types/api/address.ts index 6b6e1a2818..765561a3fa 100644 --- a/types/api/address.ts +++ b/types/api/address.ts @@ -191,7 +191,7 @@ export type AddressWithdrawalsItem = { }; export type AddressTabsCounters = { - internal_txs_count: number | null; + internal_transactions_count: number | null; logs_count: number | null; token_balances_count: number | null; token_transfers_count: number | null; diff --git a/types/api/verifiedContracts.ts b/types/api/verifiedContracts.ts index 12d45f31fc..975c46ed8b 100644 --- a/types/api/verifiedContracts.ts +++ b/types/api/verifiedContracts.ts @@ -1,5 +1,5 @@ export interface VerifiedContractsSorting { - sort: 'balance' | 'txs_count'; + sort: 'balance' | 'transactions_count'; order: 'asc' | 'desc'; } diff --git a/ui/address/contract/ContractSourceAddressSelector.tsx b/ui/address/contract/ContractSourceAddressSelector.tsx index 0bb39c6f20..aa61b96732 100644 --- a/ui/address/contract/ContractSourceAddressSelector.tsx +++ b/ui/address/contract/ContractSourceAddressSelector.tsx @@ -60,7 +60,7 @@ const ContractSourceAddressSelector = ({ className, selectedItem, onItemSelect,