From 15ba3e2cb54261bf2fb4eb8c0f8d57b09ff22d3a Mon Sep 17 00:00:00 2001 From: maciek Date: Thu, 11 May 2023 15:02:24 +0200 Subject: [PATCH] chore: suppress sentry logs when eth fails --- libs/deposits/src/lib/use-deposit-balances.ts | 1 - libs/deposits/src/lib/use-get-allowance.ts | 1 - libs/deposits/src/lib/use-get-deposit-maximum.ts | 1 - libs/deposits/src/lib/use-get-deposited-amount.ts | 1 - libs/web3/src/lib/use-get-withdraw-delay.ts | 1 - libs/withdraws/src/lib/use-complete-withdraw.ts | 1 - libs/withdraws/src/lib/use-verify-withdrawal.ts | 1 - libs/withdraws/src/lib/use-withdraw-asset.tsx | 1 - 8 files changed, 8 deletions(-) diff --git a/libs/deposits/src/lib/use-deposit-balances.ts b/libs/deposits/src/lib/use-deposit-balances.ts index c2aae2f7a..a0836cfc8 100644 --- a/libs/deposits/src/lib/use-deposit-balances.ts +++ b/libs/deposits/src/lib/use-deposit-balances.ts @@ -1,7 +1,6 @@ import { useBridgeContract, useTokenContract } from '@vegaprotocol/web3'; import { useCallback, useEffect, useState } from 'react'; import BigNumber from 'bignumber.js'; -import * as Sentry from '@sentry/react'; import { useGetAllowance } from './use-get-allowance'; import { useGetBalanceOfERC20Token } from './use-get-balance-of-erc20-token'; import { useGetDepositMaximum } from './use-get-deposit-maximum'; diff --git a/libs/deposits/src/lib/use-get-allowance.ts b/libs/deposits/src/lib/use-get-allowance.ts index 93ab37513..e51792f7f 100644 --- a/libs/deposits/src/lib/use-get-allowance.ts +++ b/libs/deposits/src/lib/use-get-allowance.ts @@ -1,5 +1,4 @@ import type { Token } from '@vegaprotocol/smart-contracts'; -import * as Sentry from '@sentry/react'; import { useWeb3React } from '@web3-react/core'; import { useCallback } from 'react'; import { useEthereumConfig } from '@vegaprotocol/web3'; diff --git a/libs/deposits/src/lib/use-get-deposit-maximum.ts b/libs/deposits/src/lib/use-get-deposit-maximum.ts index c4cd13c6d..f93e55595 100644 --- a/libs/deposits/src/lib/use-get-deposit-maximum.ts +++ b/libs/deposits/src/lib/use-get-deposit-maximum.ts @@ -1,5 +1,4 @@ import { useCallback } from 'react'; -import * as Sentry from '@sentry/react'; import BigNumber from 'bignumber.js'; import type { Asset } from '@vegaprotocol/assets'; import { addDecimal, localLoggerFactory } from '@vegaprotocol/utils'; diff --git a/libs/deposits/src/lib/use-get-deposited-amount.ts b/libs/deposits/src/lib/use-get-deposited-amount.ts index 2548a08a0..0ee0dc67a 100644 --- a/libs/deposits/src/lib/use-get-deposited-amount.ts +++ b/libs/deposits/src/lib/use-get-deposited-amount.ts @@ -1,5 +1,4 @@ import { useCallback } from 'react'; -import * as Sentry from '@sentry/react'; import { ethers } from 'ethers'; import { useEthereumConfig } from '@vegaprotocol/web3'; import BigNumber from 'bignumber.js'; diff --git a/libs/web3/src/lib/use-get-withdraw-delay.ts b/libs/web3/src/lib/use-get-withdraw-delay.ts index 324d3d7bc..a97f74ac2 100644 --- a/libs/web3/src/lib/use-get-withdraw-delay.ts +++ b/libs/web3/src/lib/use-get-withdraw-delay.ts @@ -1,4 +1,3 @@ -import * as Sentry from '@sentry/react'; import { useBridgeContract } from './use-bridge-contract'; import { useCallback } from 'react'; import { localLoggerFactory } from '@vegaprotocol/utils'; diff --git a/libs/withdraws/src/lib/use-complete-withdraw.ts b/libs/withdraws/src/lib/use-complete-withdraw.ts index bbd8444c1..440d5bba2 100644 --- a/libs/withdraws/src/lib/use-complete-withdraw.ts +++ b/libs/withdraws/src/lib/use-complete-withdraw.ts @@ -1,5 +1,4 @@ import { useApolloClient } from '@apollo/client'; -import { captureException } from '@sentry/react'; import type { CollateralBridge } from '@vegaprotocol/smart-contracts'; import { EthTxStatus, diff --git a/libs/withdraws/src/lib/use-verify-withdrawal.ts b/libs/withdraws/src/lib/use-verify-withdrawal.ts index 4ba14880e..a8076d156 100644 --- a/libs/withdraws/src/lib/use-verify-withdrawal.ts +++ b/libs/withdraws/src/lib/use-verify-withdrawal.ts @@ -1,5 +1,4 @@ import { useCallback, useState } from 'react'; -import { captureException } from '@sentry/react'; import BigNumber from 'bignumber.js'; import { addDecimal, localLoggerFactory } from '@vegaprotocol/utils'; import { t } from '@vegaprotocol/i18n'; diff --git a/libs/withdraws/src/lib/use-withdraw-asset.tsx b/libs/withdraws/src/lib/use-withdraw-asset.tsx index 7e2cb8ec4..f7c45fb53 100644 --- a/libs/withdraws/src/lib/use-withdraw-asset.tsx +++ b/libs/withdraws/src/lib/use-withdraw-asset.tsx @@ -1,4 +1,3 @@ -import { captureException } from '@sentry/react'; import type { Asset } from '@vegaprotocol/assets'; import { addDecimal, localLoggerFactory } from '@vegaprotocol/utils'; import * as Schema from '@vegaprotocol/types';