Skip to content

Commit

Permalink
nuke: arcx (#4138)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk authored Nov 14, 2023
1 parent 8d13914 commit 1fb610f
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 122 deletions.
3 changes: 0 additions & 3 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ NEXT_PUBLIC_BASE_URL=
# e.g. aeolian-local.infura-ipfs.io
NEXT_PUBLIC_INFURA_IPFS_HOSTNAME=

# prod-only
NEXT_PUBLIC_ARCX_API_KEY=

# Postmark Email Server Token
POSTMARK_SERVER_TOKEN=

Expand Down
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const CONNECT_SRC = [
'https://jbx.mypinata.cloud',
'https://api.studio.thegraph.com',
'https://gateway.thegraph.com',
'https://api.arcx.money',
'https://api.tenderly.co',
'https://*.hotjar.com',
'https://*.hotjar.io',
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
},
"dependencies": {
"@apollo/client": "3.6.9",
"@arcxmoney/analytics": "1.6.1",
"@graphql-codegen/add": "^4.0.1",
"@headlessui/react": "^1.7.10",
"@heroicons/react": "^2.0.17",
Expand Down
9 changes: 3 additions & 6 deletions src/components/common/CoreAppWrapper/CoreAppWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Layout } from 'antd'
import { Content } from 'antd/lib/layout/layout'
import SiteNavigation from 'components/Navbar/SiteNavigation'
import { QuickProjectSearchProvider } from 'components/QuickProjectSearch'
import { ArcxProvider } from 'contexts/Arcx/ArcxProvider'
import { EtherPriceProvider } from 'contexts/EtherPrice/EtherPriceProvider'
import ReactQueryProvider from 'contexts/ReactQueryProvider'
import { ThemeProvider } from 'contexts/Theme/ThemeProvider'
Expand Down Expand Up @@ -30,11 +29,9 @@ export const AppWrapper: React.FC<
<TxHistoryProvider>
<ThemeProvider>
<EtherPriceProvider>
<ArcxProvider>
<QuickProjectSearchProvider>
<_Wrapper hideNav={hideNav}>{children}</_Wrapper>
</QuickProjectSearchProvider>
</ArcxProvider>
<QuickProjectSearchProvider>
<_Wrapper hideNav={hideNav}>{children}</_Wrapper>
</QuickProjectSearchProvider>
</EtherPriceProvider>
</ThemeProvider>
</TxHistoryProvider>
Expand Down
6 changes: 0 additions & 6 deletions src/contexts/Arcx/ArcxContext.ts

This file was deleted.

32 changes: 0 additions & 32 deletions src/contexts/Arcx/ArcxProvider.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/contexts/Arcx/useArcx.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/hooks/useTransactor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { t } from '@lingui/macro'
import { FEATURE_FLAGS } from 'constants/featureFlags'
import { readNetwork } from 'constants/networks'
import { useArcx } from 'contexts/Arcx/useArcx'
import { TxHistoryContext } from 'contexts/Transaction/TxHistoryContext'
import { Contract, providers } from 'ethers'
import { simulateTransaction } from 'lib/tenderly'
Expand Down Expand Up @@ -83,7 +81,6 @@ export function useTransactor(): Transactor | undefined {

const { chain, signer, userAddress } = useWallet()
const { chainUnsupported, isConnected, changeNetworks, connect } = useWallet()
const arcx = useArcx()

return useCallback(
async (
Expand Down Expand Up @@ -142,21 +139,6 @@ export function useTransactor(): Transactor | undefined {
onCancelled: options?.onCancelled,
})

try {
// log transaction in Arcx
arcx?.transaction({
chain: readNetwork.chainId, // required(string) - chain ID that the transaction is taking place on
transactionHash: result?.hash as string,
metadata: {
functionName,
title: txTitle,
},
})
} catch (_) {
// ignore
console.warn('Arcx transaction logging failed')
}

return true
} catch (e) {
const message = (e as Error).message
Expand All @@ -181,7 +163,6 @@ export function useTransactor(): Transactor | undefined {
}
},
[
arcx,
chainUnsupported,
isConnected,
signer,
Expand Down
26 changes: 0 additions & 26 deletions src/lib/arcx.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/pages/privacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function PrivacyPolicy() {
<h1 className="text-2xl">Privacy Policy</h1>
<p>
<Link href="/">juicebox.money</Link> uses{' '}
<ExternalLink href="https://arcx.money/">ARCx</ExternalLink>,{' '}
<ExternalLink href="https://www.hotjar.com/">Hotjar</ExternalLink>, and{' '}
<ExternalLink href="https://usefathom.com/">Fathom</ExternalLink> to
collect and analyze user data.
Expand Down Expand Up @@ -62,15 +61,6 @@ function PrivacyPolicy() {
Hotjar is contractually forbidden to sell any of the data collected on
our behalf.
</p>
<h2 className="text-2xl">ARCx</h2>
<p>
We use ARCx to collect non-personally identifiable information to help
us understand how users interact with our website. To learn more, read{' '}
<ExternalLink href="https://arcx.notion.site/Privacy-Policy-12e5f98a1756409d9ec72110b430eed5">
ARCx's Privacy Policy
</ExternalLink>
.
</p>
</div>
)
}
Expand Down
2 changes: 0 additions & 2 deletions src/types/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ declare global {

NEXT_PUBLIC_BASE_URL: PublicBaseURLS

NEXT_PUBLIC_ARCX_API_KEY: string

NEXT_PUBLIC_TENDERLY_API_KEY: string
NEXT_PUBLIC_TENDERLY_PROJECT_NAME: string
NEXT_PUBLIC_TENDERLY_ACCOUNT: string
Expand Down
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@
tslib "^2.3.0"
zen-observable-ts "^1.2.5"

"@arcxmoney/analytics@1.6.1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@arcxmoney/analytics/-/analytics-1.6.1.tgz#1d90b7379b3bb672255b1cb1d3df310ab6b0c9be"
integrity sha512-GWct4Jkrxi1uRBxQWsbJYFQCgauCgHQxIne5Qc/M5whnlyiap9iL5O9VNKbIfSjONXYFe4zhh+EPFEKgjs4YtA==
dependencies:
"@restless/sanitizers" "^0.2.5"

"@ardatan/relay-compiler@12.0.0":
version "12.0.0"
resolved "https://registry.yarnpkg.com/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz#2e4cca43088e807adc63450e8cab037020e91106"
Expand Down Expand Up @@ -4859,11 +4852,6 @@
resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.4.tgz#a04d63f4d1bf5540a41b01a921c9a7fddc3bd1ca"
integrity sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA==

"@restless/sanitizers@^0.2.5":
version "0.2.5"
resolved "https://registry.yarnpkg.com/@restless/sanitizers/-/sanitizers-0.2.5.tgz#96a5cfa3edb52abd8fa14e77798738f3a067dbec"
integrity sha512-utsOFwv5owNnbj8HijF7uML/AURgUl5YvY4S2gpxQsrp2D1EP/4rQU/HSyYdIQaL89BoZ/5NHveRJrcFyuHo/w==

"@rushstack/eslint-patch@^1.1.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz#8be36a1f66f3265389e90b5f9c9962146758f728"
Expand Down

2 comments on commit 1fb610f

@vercel
Copy link

@vercel vercel bot commented on 1fb610f Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 1fb610f Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.