Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 7 additions & 0 deletions src/__tests__/GuiPlugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ describe('Production plugin data', () => {
}
})

it('Does not surface the retired Xanpool plugin', () => {
expect(guiPlugins.xanpool).toBeUndefined()
expect([...buyPluginJson, ...sellPluginJson]).not.toContainEqual(
expect.objectContaining({ pluginId: 'xanpool' })
)
})

it('Buy plugins match snapshot on iOS + US', () => {
expect(
filterGuiPluginJson(buyPluginJson, 'ios', 'US', {})
Expand Down
12 changes: 0 additions & 12 deletions src/components/scenes/SendScene2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import * as React from 'react'
import {
ActivityIndicator,
InteractionManager,
Linking,
type TextInput,
View
} from 'react-native'
Expand Down Expand Up @@ -1170,13 +1169,6 @@ const SendComponent: React.FC<Props> = props => {
return null
}

const handleLearnMore = useHandler(async () => {
const url =
config.pendingTxLearnMoreUrl ??
'https://support.edge.app/hc/en-us/articles/43465958781723'
return await Linking.openURL(url).catch(() => {})
})

const renderPendingTransactionWarning = (): React.ReactElement | null => {
if (!hasPendingTx) return null

Expand All @@ -1186,10 +1178,6 @@ const SendComponent: React.FC<Props> = props => {
type="warning"
title={lstrings.pending_transaction_modal_title}
body={lstrings.pending_transaction_modal_message}
button={{
label: lstrings.learn_more_button,
onPress: handleLearnMore
}}
marginRem={0.5}
/>
</EdgeAnim>
Expand Down
11 changes: 0 additions & 11 deletions src/constants/plugins/GuiPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,17 +276,6 @@ export const guiPlugins: Record<string, GuiPlugin> = {
forceFiatCurrencyCode: 'iso:USD',
displayName: 'Bank Wire Transfer'
},
xanpool: {
pluginId: 'xanpool',
storeId: 'xanpool',
baseUri: 'https://widget.xanpool.com',
baseQuery: {
apiKey: 'ae524a0144ccd8dc087af39eabb7a02a',
isWebView: 'true'
},
displayName: 'Xanpool',
permissions: ['camera']
},
// Partner whitelabel plugins
coinhub: {
pluginId: 'coinhub',
Expand Down
14 changes: 0 additions & 14 deletions src/constants/plugins/buyPluginList.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,6 @@
"cryptoCodes": [],
"paymentTypeLogoKey": "bank"
},
{
"id": "xanpool",
"pluginId": "xanpool",
"paymentTypes": ["bank"],
"description": "Fee: 1.5% / Settlement: Instant",
"title": "PayNow",
"partnerIconPath": "xanpool-logo.png",
"forCountries": [],
"paymentTypeLogoKey": "paynow",
"deepQuery": {
"transactionType": "buy",
"currency": "SGD"
}
},
"----- Sorting -----",
{
"id": "fasterpayments",
Expand Down
16 changes: 0 additions & 16 deletions src/constants/plugins/sellPluginList.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,22 +265,6 @@
"cryptoCodes": [],
"paymentTypeLogoKey": "venmo"
},
{
"id": "xanpool",
"pluginId": "xanpool",
"paymentTypes": [
"bank"
],
"description": "Fee: 1.8% / Settlement: Instant",
"title": "PayNow",
"partnerIconPath": "xanpool-logo.png",
"forCountries": [],
"paymentTypeLogoKey": "paynow",
"deepQuery": {
"transactionType": "sell",
"currency": "SGD"
}
},
"----- Sorting -----",
{
"id": "sepa",
Expand Down
9 changes: 1 addition & 8 deletions src/envConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export const asEnvConfig = asObject({
),
ionia: asOptional(
asObject({
authTokenUrl: asString,
clientId: asString,
clientSecret: asString,
ioniaBaseUrl: asString,
Expand Down Expand Up @@ -205,14 +206,6 @@ export const asEnvConfig = asObject({
simplex: undefined
})
),
WYRE_CLIENT_INIT: asOptional(
asObject({
baseUri: asString
}),
() => ({
baseUri: 'https://api.sendwyre.com'
})
),
AZTECO_API_KEY: asNullable(asString),
STAKEKIT_API_KEY: asNullable(asString),
KILN_TESTNET_API_KEY: asNullable(asString),
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/gui/providers/ioniaProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const ioniaBaseRequestOptions = {
}

const asIoniaPluginApiKeys = asObject({
authTokenUrl: asString,
clientId: asString,
clientSecret: asString,
ioniaBaseUrl: asString,
Expand Down Expand Up @@ -145,7 +146,7 @@ export const makeIoniaProvider: FiatProviderFactory<IoniaMethods> = {

// OAuth Access Token Request:
const fetchAccessToken = cleanFetch({
resource: new URL(`https://auth.craypay.com/connect/token`),
resource: new URL(pluginKeys.authTokenUrl),
options: {
method: 'POST',
headers: {
Expand Down
2 changes: 0 additions & 2 deletions src/theme/edgeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export const edgeConfig: AppConfig = {
backupAccountSite: 'https://edge.app/light-account-creation/',
configName: 'edge',
darkTheme: edgeDark,
pendingTxLearnMoreUrl:
'https://support.edge.app/hc/en-us/articles/43465958781723',
zcashMigrationLearnMoreUrl: 'https://support.edge.app/articles/16111542',
defaultWallets: [
{ pluginId: 'bitcoin', tokenId: null },
Expand Down
2 changes: 0 additions & 2 deletions src/theme/testConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export const testConfig: AppConfig = {
backupAccountSite: 'https://support.testy.com/accountbackupinfo',
configName: 'test',
darkTheme: testDark,
pendingTxLearnMoreUrl:
'https://support.edge.app/hc/en-us/articles/43465958781723',
defaultWallets: [
{ pluginId: 'bitcoin', tokenId: null },
{ pluginId: 'fantom', tokenId: '6c021ae822bea943b2e66552bde1d2696a53fbb7' },
Expand Down
4 changes: 0 additions & 4 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,6 @@ export interface AppConfig {
referralAppShareUrl?: string
disableSwaps?: boolean
disableSurveyModal?: boolean
/**
* Support article for pending transactions "Learn more" link.
*/
pendingTxLearnMoreUrl?: string
/**
* Support article for the Zcash Orchard -> Ironwood migration card's
* "Learn more" link.
Expand Down